[Nagiosplug-checkins] CVS: nagiosplug/plugins check_procs.c,1.26,1.27
Ton Voon
tonvoon at users.sourceforge.net
Tue Apr 6 09:16:15 CEST 2004
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15775/plugins
Modified Files:
check_procs.c
Log Message:
Fixed weird scanf bug on Solaris
Index: check_procs.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_procs.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** check_procs.c 20 Feb 2004 05:04:32 -0000 1.26
--- check_procs.c 6 Apr 2004 16:02:13 -0000 1.27
***************
*** 156,163 ****
if ( cols == (expected_cols - 1) && strstr(procstat, zombie) ) {
cols = expected_cols;
- /* Set some value for procargs for the strip command further below
- Seen to be a problem on some Solaris 7 and 8 systems */
- input_buffer[pos] = '\n';
- input_buffer[pos+1] = 0x0;
}
if ( cols >= expected_cols ) {
--- 156,159 ----
More information about the Commits
mailing list