mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Fix about check_by_ssh plugin and fcntl().
PR: ports/31352, ports/39018 Submitted by: Stanley.Hopcroft@IPAustralia.Gov.AU (via maintainer)
This commit is contained in:
parent
014a5fd275
commit
fdc4a7b103
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61093
4 changed files with 42 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= netsaint
|
||||
PORTVERSION= 0.0.7
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://netsaint.sourceforge.net/download/ \
|
||||
|
|
20
net-mgmt/netsaint/files/patch-ba
Normal file
20
net-mgmt/netsaint/files/patch-ba
Normal file
|
@ -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;
|
||||
}
|
||||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= netsaint
|
||||
PORTVERSION= 0.0.7
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://netsaint.sourceforge.net/download/ \
|
||||
|
|
20
net/netsaint/files/patch-ba
Normal file
20
net/netsaint/files/patch-ba
Normal file
|
@ -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;
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue