make delay between iterations more predictable

This commit is contained in:
Sergey Popov 2011-12-19 15:56:34 +04:00
parent 323eb556c8
commit bc36207f1f

View File

@ -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);
} }