You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2003/01/15 15:32:06 UTC

cvs commit: httpd-2.0/support config.m4

trawick     2003/01/15 06:32:06

  Modified:    support  config.m4
  Log:
  Change the ulimit command used by apachectl on AIX so that it
  works in all locales.
  
  the standard command fails in a non-English locale if the hard
  limit is unlimited since the display of the limit will translate
  "unlimited", but ulimit only accepts English "unlimited" on input
  
  Revision  Changes    Path
  1.6       +16 -5     httpd-2.0/support/config.m4
  
  Index: config.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/support/config.m4,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- config.m4	14 Jul 2002 23:18:45 -0000	1.5
  +++ config.m4	15 Jan 2003 14:32:06 -0000	1.6
  @@ -81,9 +81,20 @@
   ])
   APACHE_SUBST(checkgid_LTFLAGS)
   
  -if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT ; then
  -  APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`"
  -else
  -  APACHECTL_ULIMIT=""
  -fi
  +case $host in
  +    *aix*)
  +        # this works in any locale, unlike the command below, which
  +        # fails in a non-English locale if the hard limit is unlimited
  +        # since the display of the limit will translate "unlimited", but
  +	# ulimit only accepts English "unlimited" on input
  +        APACHECTL_ULIMIT="ulimit -S -n unlimited"
  +        ;;
  +    *)
  +        if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT ; then
  +            APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`"
  +        else
  +            APACHECTL_ULIMIT=""
  +        fi
  +        ;;
  +esac
   APACHE_SUBST(APACHECTL_ULIMIT)