mirror of
https://git.freebsd.org/ports.git
synced 2025-06-13 16:50:29 -04:00
18 lines
361 B
C
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);
|