Fix bug #1494629 - check_icmp fails after some time on FreeBSD

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1650 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
Thomas Guyot-Sionnest 2007-03-27 06:53:57 +00:00
parent ddd8e7e22e
commit 223da2af43
2 changed files with 3 additions and 1 deletions

View file

@ -213,3 +213,4 @@ Lars Stavholm
Enrico Scholz
Marlo Bell
Stefan Meier
Mark Favas

View file

@ -395,7 +395,8 @@ main(int argc, char **argv)
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