Taken from: https://github.com/freebsd/freebsd-ports.git Commit id: 5070672073b68be364139bc6b3a89100bd17d331
11 lines
341 B
C
11 lines
341 B
C
--- ./ntop.c.orig 2011-02-02 10:23:03.000000000 +0100
|
|
+++ ./ntop.c 2011-02-02 10:24:12.000000000 +0100
|
|
@@ -187,7 +187,7 @@
|
|
#endif
|
|
signal(SIGQUIT, SIG_IGN);
|
|
|
|
- if((childpid=fork()) < 0)
|
|
+ if((childpid=rfork(RFPROC)) < 0)
|
|
traceEvent(CONST_TRACE_ERROR, "INIT: Occurred while daemonizing (errno=%d)", errno);
|
|
else {
|
|
#ifdef DEBUG
|