--- a/miniupnpd.c
|
|
+++ b/miniupnpd.c
|
|
@@ -1769,21 +1769,7 @@ init(int argc, char * * argv, struct run
|
|
}
|
|
}
|
|
|
|
- if(debug_flag)
|
|
- {
|
|
- pid = getpid();
|
|
- }
|
|
- else
|
|
- {
|
|
-#ifdef USE_DAEMON
|
|
- if(daemon(0, 0)<0) {
|
|
- perror("daemon()");
|
|
- }
|
|
- pid = getpid();
|
|
-#else
|
|
- pid = daemonize();
|
|
-#endif
|
|
- }
|
|
+ pid = getpid();
|
|
|
|
openlog_option = LOG_PID|LOG_CONS;
|
|
if(debug_flag)
|