make delay between iterations more predictable
This commit is contained in:
parent
323eb556c8
commit
bc36207f1f
3
yasnd.c
3
yasnd.c
@ -368,8 +368,9 @@ int main(void) {
|
|||||||
{
|
{
|
||||||
unsigned char child_stack[16384];
|
unsigned char child_stack[16384];
|
||||||
mainloop_clone_pid=clone(loop_function,child_stack+8192,CLONE_VM,NULL);
|
mainloop_clone_pid=clone(loop_function,child_stack+8192,CLONE_VM,NULL);
|
||||||
waitpid(mainloop_clone_pid,NULL,__WCLONE);
|
|
||||||
sleep(60); /* wait 60 seconds */
|
sleep(60); /* wait 60 seconds */
|
||||||
|
// wait for clone process to prevent zombie
|
||||||
|
waitpid(mainloop_clone_pid,NULL,__WCLONE);
|
||||||
// log_event("Exiting");
|
// log_event("Exiting");
|
||||||
// exit(EXIT_SUCCESS);
|
// exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user