I could not make my sleep () program after using kill (pid, SIGTERM), what can I do?
The code I'm using is:
kill(PID_of_Process_to_be_killed,SIGTERM); sleep(5); --> this is not working sleep(5); --> this is working
solution at the moment:
kill(PID_of_Process_to_be_killed,SIGTERM); sleep(sleep(5));
but why the first dream after returning kill 0?
Ran s source share