From bc36207f1f7d00b5ab16da3bed3280481f7570b9 Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Mon, 19 Dec 2011 15:56:34 +0400 Subject: [PATCH] make delay between iterations more predictable --- yasnd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yasnd.c b/yasnd.c index 5332a96..febf115 100644 --- a/yasnd.c +++ b/yasnd.c @@ -368,8 +368,9 @@ int main(void) { { unsigned char child_stack[16384]; mainloop_clone_pid=clone(loop_function,child_stack+8192,CLONE_VM,NULL); - waitpid(mainloop_clone_pid,NULL,__WCLONE); sleep(60); /* wait 60 seconds */ + // wait for clone process to prevent zombie + waitpid(mainloop_clone_pid,NULL,__WCLONE); // log_event("Exiting"); // exit(EXIT_SUCCESS); }