summaryrefslogtreecommitdiffstats
path: root/web/attachments/54764-check_procs.c.diff
blob: 89171aebe182ba72ffbf98df2605d613518639cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: check_procs.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_procs.c,v
retrieving revision 1.15
diff -u -3 -r1.15 check_procs.c
--- check_procs.c	11 Apr 2003 23:47:39 -0000	1.15
+++ check_procs.c	2 Jul 2003 16:04:21 -0000
@@ -204,6 +204,8 @@
 		/* Zombie processes do not give a procprog command */
 		if ( cols == 6 && strstr(procstat, zombie) ) {
 			cols = 7;
+			input_buffer[pos] = '\n';
+			input_buffer[pos+1] = 0x0;
 		}
 		if ( cols >= 7 ) {
 			resultsum = 0;