[Nagiosplug-checkins] CVS: nagiosplug/plugins popen.c,1.2,1.3
Karl DeBisschop
kdebisschop at users.sourceforge.net
Mon Jan 13 04:14:04 CET 2003
- Previous message: [Nagiosplug-checkins] CVS: nagiosplug/plugins check_nagios.c,1.2,1.3
- Next message: [Nagiosplug-checkins] CVS: nagiosplug/plugins check_by_ssh.c,1.6,1.7 check_dig.c,1.7,1.8 check_disk.c,1.6,1.7 check_dns.c,1.5,1.6 check_dummy.c,1.1.1.1,1.2 check_fping.c,1.3,1.4 check_hpjd.c,1.5,1.6 check_http.c,1.13,1.14 check_ldap.c,1.2,1.3 check_load.c,1.4,1.5 check_mrtg.c,1.3,1.4 check_mrtgtraf.c,1.2,1.3 check_mysql.c,1.2,1.3 check_nagios.c,1.3,1.4 check_nwstat.c,1.3,1.4 check_overcr.c,1.1.1.1,1.2 check_pgsql.c,1.3,1.4 check_ping.c,1.10,1.11 check_procs.c,1.5,1.6 check_radius.c,1.2,1.3 check_real.c,1.2,1.3 check_smtp.c,1.8,1.9 check_snmp.c,1.20,1.21 check_ssh.c,1.3,1.4 check_swap.c,1.6,1.7 check_tcp.c,1.10,1.11 check_time.c,1.3,1.4 check_udp.c,1.2,1.3 check_ups.c,1.5,1.6 check_users.c,1.2,1.3 check_vsz.c,1.4,1.5 negate.c,1.3,1.4 urlize.c,1.4,1.5 utils.c,1.14,1.15 utils.h.in,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv17108
Modified Files:
popen.c
Log Message:
change exit status to be POSIX compliant
Index: popen.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/popen.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** popen.c 7 Oct 2002 01:34:46 -0000 1.2
--- popen.c 13 Jan 2003 12:13:56 -0000 1.3
***************
*** 204,225 ****
if (childpid == NULL)
! return (-1); /* popen() has never been called */
fd = fileno (fp);
if ((pid = childpid[fd]) == 0)
! return (-1); /* fp wasn't opened by popen() */
childpid[fd] = 0;
if (fclose (fp) == EOF)
! return (-1);
while (waitpid (pid, &stat, 0) < 0)
if (errno != EINTR)
! return (-1); /* error other than EINTR from waitpid() */
if (WIFEXITED (stat))
return (WEXITSTATUS (stat)); /* return child's termination status */
! return (STATE_UNKNOWN);
}
--- 204,225 ----
if (childpid == NULL)
! return (1); /* popen() has never been called */
fd = fileno (fp);
if ((pid = childpid[fd]) == 0)
! return (1); /* fp wasn't opened by popen() */
childpid[fd] = 0;
if (fclose (fp) == EOF)
! return (1);
while (waitpid (pid, &stat, 0) < 0)
if (errno != EINTR)
! return (1); /* error other than EINTR from waitpid() */
if (WIFEXITED (stat))
return (WEXITSTATUS (stat)); /* return child's termination status */
! return (1);
}
- Previous message: [Nagiosplug-checkins] CVS: nagiosplug/plugins check_nagios.c,1.2,1.3
- Next message: [Nagiosplug-checkins] CVS: nagiosplug/plugins check_by_ssh.c,1.6,1.7 check_dig.c,1.7,1.8 check_disk.c,1.6,1.7 check_dns.c,1.5,1.6 check_dummy.c,1.1.1.1,1.2 check_fping.c,1.3,1.4 check_hpjd.c,1.5,1.6 check_http.c,1.13,1.14 check_ldap.c,1.2,1.3 check_load.c,1.4,1.5 check_mrtg.c,1.3,1.4 check_mrtgtraf.c,1.2,1.3 check_mysql.c,1.2,1.3 check_nagios.c,1.3,1.4 check_nwstat.c,1.3,1.4 check_overcr.c,1.1.1.1,1.2 check_pgsql.c,1.3,1.4 check_ping.c,1.10,1.11 check_procs.c,1.5,1.6 check_radius.c,1.2,1.3 check_real.c,1.2,1.3 check_smtp.c,1.8,1.9 check_snmp.c,1.20,1.21 check_ssh.c,1.3,1.4 check_swap.c,1.6,1.7 check_tcp.c,1.10,1.11 check_time.c,1.3,1.4 check_udp.c,1.2,1.3 check_ups.c,1.5,1.6 check_users.c,1.2,1.3 check_vsz.c,1.4,1.5 negate.c,1.3,1.4 urlize.c,1.4,1.5 utils.c,1.14,1.15 utils.h.in,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commits
mailing list