You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
386 B

  1. --- a/miniupnpd.c
  2. +++ b/miniupnpd.c
  3. @@ -1727,21 +1727,7 @@ init(int argc, char * * argv, struct runtime_vars * v)
  4. }
  5. }
  6. - if(debug_flag)
  7. - {
  8. - pid = getpid();
  9. - }
  10. - else
  11. - {
  12. -#ifdef USE_DAEMON
  13. - if(daemon(0, 0)<0) {
  14. - perror("daemon()");
  15. - }
  16. - pid = getpid();
  17. -#else
  18. - pid = daemonize();
  19. -#endif
  20. - }
  21. + pid = getpid();
  22. openlog_option = LOG_PID|LOG_CONS;
  23. if(debug_flag)