diff options
-rw-r--r-- | net-mgmt/netsaint/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/netsaint/files/patch-ba | 20 | ||||
-rw-r--r-- | net/netsaint/Makefile | 1 | ||||
-rw-r--r-- | net/netsaint/files/patch-ba | 20 |
4 files changed, 42 insertions, 0 deletions
diff --git a/net-mgmt/netsaint/Makefile b/net-mgmt/netsaint/Makefile index f3d3d1593e0a..85000a689d1f 100644 --- a/net-mgmt/netsaint/Makefile +++ b/net-mgmt/netsaint/Makefile @@ -7,6 +7,7 @@ PORTNAME= netsaint PORTVERSION= 0.0.7 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net MASTER_SITES= http://netsaint.sourceforge.net/download/ \ diff --git a/net-mgmt/netsaint/files/patch-ba b/net-mgmt/netsaint/files/patch-ba new file mode 100644 index 000000000000..c4b47eabff35 --- /dev/null +++ b/net-mgmt/netsaint/files/patch-ba @@ -0,0 +1,20 @@ +--- base/utils.c.orig Thu Feb 21 02:47:12 2002 ++++ base/utils.c Tue Jun 11 09:21:53 2002 +@@ -1884,6 +1884,17 @@ + val|=FD_CLOEXEC; + fcntl(lockfile,F_SETFD,val); + ++ /* close existing stdin, stdout, stderr */ ++ close(0); ++ close(1); ++ close(2); ++ ++ /* THIS HAS TO BE DONE TO AVOID PROBLEMS WITH STDERR BEING REDIRECTED TO SERVICE MESSAGE PIPE! */ ++ /* re-open stdin, stdout, stderr with known values */ ++ open("/dev/null",O_RDONLY); ++ open("/dev/null",O_WRONLY); ++ open("/dev/null",O_WRONLY); ++ + return OK; + } + diff --git a/net/netsaint/Makefile b/net/netsaint/Makefile index f3d3d1593e0a..85000a689d1f 100644 --- a/net/netsaint/Makefile +++ b/net/netsaint/Makefile @@ -7,6 +7,7 @@ PORTNAME= netsaint PORTVERSION= 0.0.7 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net MASTER_SITES= http://netsaint.sourceforge.net/download/ \ diff --git a/net/netsaint/files/patch-ba b/net/netsaint/files/patch-ba new file mode 100644 index 000000000000..c4b47eabff35 --- /dev/null +++ b/net/netsaint/files/patch-ba @@ -0,0 +1,20 @@ +--- base/utils.c.orig Thu Feb 21 02:47:12 2002 ++++ base/utils.c Tue Jun 11 09:21:53 2002 +@@ -1884,6 +1884,17 @@ + val|=FD_CLOEXEC; + fcntl(lockfile,F_SETFD,val); + ++ /* close existing stdin, stdout, stderr */ ++ close(0); ++ close(1); ++ close(2); ++ ++ /* THIS HAS TO BE DONE TO AVOID PROBLEMS WITH STDERR BEING REDIRECTED TO SERVICE MESSAGE PIPE! */ ++ /* re-open stdin, stdout, stderr with known values */ ++ open("/dev/null",O_RDONLY); ++ open("/dev/null",O_WRONLY); ++ open("/dev/null",O_WRONLY); ++ + return OK; + } + |