]> granicus.if.org Git - apache/commitdiff
Silence ulimit warnings on platforms/configs that don't support setting the
authorJustin Erenkrantz <jerenkrantz@apache.org>
Sat, 3 Jan 2009 05:06:43 +0000 (05:06 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Sat, 3 Jan 2009 05:06:43 +0000 (05:06 +0000)
soft limit to the hard limit (aka default Mac OS X).

* support/config.m4: Redirect output to /dev/null.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@730911 13f79535-47bb-0310-9956-ffa450edef68

support/config.m4

index 9eeda72af9f361d1114aadad7eb4da1f4b95e2b0..99bf7f7a5b40e96a4dcf20754b59f51853f57b2d 100644 (file)
@@ -127,7 +127,7 @@ case $host in
         APACHECTL_ULIMIT="ulimit -S -n \`ulimit -h -n\`"
         ;;
     *)
-        if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT ; then
+        if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT >/dev/null 2>&1; then
             APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`"
         else
             APACHECTL_ULIMIT=""