opnsense-ports/net/rinetd/files/patch-rinetd.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

18 lines
361 B
C

--- rinetd.c.orig Thu Jul 19 22:19:59 2001
+++ rinetd.c Thu Jul 19 22:20:26 2001
@@ -243,6 +243,7 @@
signal(SIGHUP, hup);
#endif /* WIN32 */
signal(SIGTERM, term);
+ setsid();
initArrays();
readConfiguration();
RegisterPID();
@@ -646,6 +646,7 @@
}
}
}
+ fclose(in);
/* Open the log file */
if (logFile) {
fclose(logFile);