mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-20 21:57:10 -04:00
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:
parent
ddd8e7e22e
commit
223da2af43
2 changed files with 3 additions and 1 deletions
|
|
@ -213,3 +213,4 @@ Lars Stavholm
|
|||
Enrico Scholz
|
||||
Marlo Bell
|
||||
Stefan Meier
|
||||
Mark Favas
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue