logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

CVS: nagiosplug/plugins check_procs.c,1.26,1.27: msg#00002

Subject: CVS: nagiosplug/plugins check_procs.c,1.26,1.27
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 ----



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click


<Prev in Thread] Current Thread [Next in Thread>