Daemonize SICS

r1608 | ffr | 2007-03-06 16:08:41 +1100 (Tue, 06 Mar 2007) | 2 lines
This commit is contained in:
Ferdi Franceschini
2007-03-06 16:08:41 +11:00
committed by Douglas Clowes
parent c3b5bb73ca
commit cbbfbfe552

View File

@@ -20,6 +20,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include "nserver.h"
/***************************** Necessary Globals ****************************/
@@ -54,6 +55,7 @@
printf("Unrecoverable error on server startup, exiting.........\n");
exit(1);
}
daemon(1,1);
RunServer(pServ);