Date: Tue, 11 Jun 2002 00:50:02 -0700 (PDT) From: "Blaz Zupan" <blaz@amis.net> To: freebsd-ports@FreeBSD.org Subject: Re: ports/31352: Netsaint check_by_ssh: fcntl(0, F_SETFL, O_NONBLOCK): Inappropriate ioctl for device Message-ID: <200206110750.g5B7o2e42234@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/31352; it has been noted by GNATS. From: "Blaz Zupan" <blaz@amis.net> To: <freebsd-gnats-submit@FreeBSD.org>, <dl@leo.org> Cc: Subject: Re: ports/31352: Netsaint check_by_ssh: fcntl(0, F_SETFL, O_NONBLOCK): Inappropriate ioctl for device Date: Tue, 11 Jun 2002 09:38:37 +0200 Here is a patch for both the netsaint and nagios ports. Please report back if it fixes your problems. Fix has been pointed out to me by Stanley Hopcroft <Stanley.Hopcroft@IPAustralia.Gov.AU> (see PR 39018). diff -urN netsaint.old/Makefile netsaint/Makefile --- netsaint.old/Makefile Thu Mar 14 06:41:17 2002 +++ netsaint/Makefile Tue Jun 11 09:25:40 2002 @@ -7,6 +7,7 @@ PORTNAME= netsaint PORTVERSION= 0.0.7 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net MASTER_SITES= http://netsaint.sourceforge.net/download/ \ diff -urN netsaint.old/files/patch-ba netsaint/files/patch-ba --- netsaint.old/files/patch-ba Thu Jan 1 01:00:00 1970 +++ netsaint/files/patch-ba Tue Jun 11 09:22:21 2002 @@ -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 -urN nagios.old/Makefile nagios/Makefile --- nagios.old/Makefile Tue Jun 4 04:52:36 2002 +++ nagios/Makefile Tue Jun 11 09:10:31 2002 @@ -6,11 +6,11 @@ # PORTNAME= nagios -PORTVERSION= 1.0.b2 +PORTVERSION= 1.0.b3 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR=nagios -DISTNAME= nagios-1.0b2 +DISTNAME= nagios-1.0b3 MAINTAINER= blaz@si.FreeBSD.org diff -urN nagios.old/distinfo nagios/distinfo --- nagios.old/distinfo Tue Jun 4 04:52:36 2002 +++ nagios/distinfo Tue Jun 11 09:10:47 2002 @@ -1 +1 @@ -MD5 (nagios-1.0b2.tar.gz) = beb6349b4ce46cd19e27a12ab1c79f70 +MD5 (nagios-1.0b3.tar.gz) = 2bef463bedf547321d7eb6155355a389 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206110750.g5B7o2e42234>