[Nagiosplug-checkins] CVS: nagiosplug configure.in,1.106,1.107

Ton Voon tonvoon at users.sourceforge.net
Tue Apr 6 09:16:13 CEST 2004


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15775

Modified Files:
	configure.in 
Log Message:
Fixed weird scanf bug on Solaris


Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.106
retrieving revision 1.107
diff -C2 -r1.106 -r1.107
*** configure.in	18 Mar 2004 20:37:13 -0000	1.106
--- configure.in	6 Apr 2004 16:02:13 -0000	1.107
***************
*** 738,741 ****
--- 738,742 ----
  	AC_MSG_RESULT([$ac_cv_ps_command - with no RSS])
  
+ dnl Solaris 2.6
  elif ps -Ao 's comm vsz rss uid user ppid args' 2>/dev/null | \
  	egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null
***************
*** 743,747 ****
  	ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
  	ac_cv_ps_command="$PATH_TO_PS -Ao 's uid ppid vsz rss pcpu comm args'"
! 	ac_cv_ps_format="%s %d %d %d %d %f %s %n"
  	ac_cv_ps_cols=8
  	AC_MSG_RESULT([$ac_cv_ps_command])
--- 744,750 ----
  	ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
  	ac_cv_ps_command="$PATH_TO_PS -Ao 's uid ppid vsz rss pcpu comm args'"
! 	# There must be no space between the %s and %n due to a wierd problem in sscanf where
! 	# it will return %n as longer than the line length
! 	ac_cv_ps_format="%s %d %d %d %d %f %s%n"
  	ac_cv_ps_cols=8
  	AC_MSG_RESULT([$ac_cv_ps_command])





More information about the Commits mailing list