summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--THANKS.in1
-rw-r--r--plugins-root/check_icmp.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/THANKS.in b/THANKS.in
index 9b72b26f..6d674bc4 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -213,3 +213,4 @@ Lars Stavholm
213Enrico Scholz 213Enrico Scholz
214Marlo Bell 214Marlo Bell
215Stefan Meier 215Stefan Meier
216Mark Favas
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index 7a23e05a..7e3b00f3 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -395,7 +395,8 @@ main(int argc, char **argv)
395 environ = NULL; 395 environ = NULL;
396 396
397 /* use the pid to mark packets as ours */ 397 /* use the pid to mark packets as ours */
398 pid = getpid(); 398 /* Some systems have 32-bit pid_t so mask off only 16 bits */
399 pid = getpid() & 0xffff;
399 /* printf("pid = %u\n", pid); */ 400 /* printf("pid = %u\n", pid); */
400 401
401 /* get calling name the old-fashioned way for portability instead 402 /* get calling name the old-fashioned way for portability instead