pkgsrc/net/rinetd/patches/patch-ab
grant 38fd9dcbc9 Initial import of rinetd-0.62 into The NetBSD Packages Collection.
Redirects TCP connections from one IP address and port to another.
rinetd is a single-process server which handles any number of
connections address/port pairs. Since rinetd runs as a single
process using nonblocking I/O, it is able to redirect a large
number of connections without a severe impact on the machine.
2003-10-01 01:15:44 +00:00

30 lines
761 B
Text

$NetBSD: patch-ab,v 1.1.1.1 2003/10/01 01:15:44 grant Exp $
--- rinetd.c.orig 2003-04-15 11:19:23.000000000 +1000
+++ rinetd.c
@@ -214,7 +214,7 @@ struct _rinetd_options
};
RinetdOptions options = {
- "/etc/rinetd.conf"
+ RINETD_CONF
};
int readArgs (int argc,
@@ -1362,8 +1362,6 @@ void RegisterPID(void)
if (pidLogFileName) {
pid_file_name = pidLogFileName;
}
-/* add other systems with wherever they register processes */
-#if defined(LINUX)
pid_file = fopen(pid_file_name, "w");
if (pid_file == NULL) {
/* non-fatal, non-Linux may lack /var/run... */
@@ -1374,7 +1372,6 @@ void RegisterPID(void)
fprintf(pid_file, "%d\n", getpid());
fclose(pid_file);
}
-#endif /* LINUX */
}
unsigned char nullAddress[4] = { 0, 0, 0, 0 };