diff options
Diffstat (limited to 'web/attachments/222424-check_icmp.32bit-pid_t.patch')
-rw-r--r-- | web/attachments/222424-check_icmp.32bit-pid_t.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/web/attachments/222424-check_icmp.32bit-pid_t.patch b/web/attachments/222424-check_icmp.32bit-pid_t.patch new file mode 100644 index 0000000..a3154ed --- /dev/null +++ b/web/attachments/222424-check_icmp.32bit-pid_t.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Index: plugins-root/check_icmp.c | ||
2 | =================================================================== | ||
3 | RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-root/check_icmp.c,v | ||
4 | retrieving revision 1.11 | ||
5 | diff -u -r1.11 check_icmp.c | ||
6 | --- plugins-root/check_icmp.c 8 Mar 2007 09:09:38 -0000 1.11 | ||
7 | +++ plugins-root/check_icmp.c 27 Mar 2007 06:29:32 -0000 | ||
8 | @@ -395,7 +395,8 @@ | ||
9 | environ = NULL; | ||
10 | |||
11 | /* use the pid to mark packets as ours */ | ||
12 | - pid = getpid(); | ||
13 | + /* Some systems have 32-bit pid_t so mask off only 16 bits */ | ||
14 | + pid = getpid() & 0xffff; | ||
15 | /* printf("pid = %u\n", pid); */ | ||
16 | |||
17 | /* get calling name the old-fashioned way for portability instead | ||