packages/net/miniupnpd/patches/100-no-daemon.patch
Kevin Darbyshire-Bryant 0189c45253 miniupnpd: macosx compat and refresh patches
Tidy up some minor patch fuzz with a refresh.

Also tweak the linux makefile to make it run on macosx and linux:
install only understand -m for filemode, not that the openwrt staging
dir understands file modes.  Also glibc>2.17 so patch out the check that
otherwise barfs a number of errors from a missing 'ldd' command under
macos.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2020-07-01 10:16:43 +01:00

25 lines
372 B
Diff

--- 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)