Skip to content
Snippets Groups Projects
Commit 7c64a4ab authored by Timothy Stack's avatar Timothy Stack
Browse files

Need to daemonize earlier or the threads go away...

parent 7e9d608a
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,12 @@ main(int argc, char **argv)
if (!server)
server = EVENTSERVER;
/*
* XXX Need to daemonize earlier or the threads go away.
*/
if (!debug)
daemon(0, 0);
/*
* Convert server/port to elvin thing.
*
......@@ -181,13 +187,6 @@ main(int argc, char **argv)
(void) fclose(fp);
}
/*
* Do this now, once we have had a chance to fail on the above
* event system calls.
*/
if (!debug)
daemon(0, 0);
/* Begin the event loop, waiting to receive event notifications */
while (1)
sleep(10);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment