don't get interrupted during a sleep.
write_int(recv_pipe[1],1);
close(recv_pipe[1]);
io_flush();
write_int(recv_pipe[1],1);
close(recv_pipe[1]);
io_flush();
- /* finally we go to sleep until our parent kills us with
- a USR2 signal */
- while (1) sleep(60);
+ /* finally we go to sleep until our parent kills us
+ with a USR2 signal. We sleepp for a short time as on
+ some OSes a signal won't interrupt a sleep! */
+ while (1) sleep(1);