fix the zommbie process bug

sleep() will be interrupted if the signal function is called