[Nagiosplug-checkins] nagiosplug/plugins-root check_icmp.c, 1.11, 1.12
Thomas Guyot
dermoth at users.sourceforge.net
Tue Mar 27 08:53:59 CEST 2007
Update of /cvsroot/nagiosplug/nagiosplug/plugins-root
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv31240/plugins-root
Modified Files:
check_icmp.c
Log Message:
Fix bug #1494629 - check_icmp fails after some time on FreeBSD
Index: check_icmp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-root/check_icmp.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- check_icmp.c 8 Mar 2007 09:09:38 -0000 1.11
+++ check_icmp.c 27 Mar 2007 06:53:57 -0000 1.12
@@ -395,7 +395,8 @@
environ = NULL;
/* use the pid to mark packets as ours */
- pid = getpid();
+ /* Some systems have 32-bit pid_t so mask off only 16 bits */
+ pid = getpid() & 0xffff;
/* printf("pid = %u\n", pid); */
/* get calling name the old-fashioned way for portability instead
More information about the Commits
mailing list