As Redeemer said , It seems you have a function that contains an endless loop and you call this function in another (endless) loop. Check all loops in your code and when you find bad one you can either delete it or use proc_kill(4); (thanks to JazzDude)