summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2008-08-03 14:34:31 -0600
committerEric Blake <ebb9@byu.net>2008-08-03 14:34:31 -0600
commite0835c041b5ae5b1f0c5da9c7850e57166695f78 (patch)
tree619b1f3277035143921cd1c6204ad71bf84de898
parentb468fbd8067fc3ada29c796cc197605626662957 (diff)
downloadm4-e0835c041b5ae5b1f0c5da9c7850e57166695f78.tar.gz
Increase ulimit stack value to be larger than SIGSTKSZ.
* checks/stackovf.test (tmpfile): Use 300K rather than 50K, since at least OpenBSD's sh died early from an undersized stack limit. Signed-off-by: Eric Blake <ebb9@byu.net>
-rw-r--r--ChangeLog6
-rwxr-xr-xchecks/stackovf.test4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6bea889c..44de8791 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-03 Eric Blake <ebb9@byu.net>
+
+ Increase ulimit stack value to be larger than SIGSTKSZ.
+ * checks/stackovf.test (tmpfile): Use 300K rather than 50K, since
+ at least OpenBSD's sh died early from an undersized stack limit.
+
2008-07-17 Eric Blake <ebb9@byu.net>
Fix missing copyright notices.
diff --git a/checks/stackovf.test b/checks/stackovf.test
index 4b938e75..0ab0ccb2 100755
--- a/checks/stackovf.test
+++ b/checks/stackovf.test
@@ -62,9 +62,9 @@ trap '(exit $?); exit $?' 1 2 3 15
tmpfile="$tmpdir"/m4.out
# Limit the stack size if the shell we are running permits it
-if (exec 2>/dev/null; ulimit -Ss 50)
+if (exec 2>/dev/null; ulimit -Ss 300)
then
- ulimit -Ss 50
+ ulimit -Ss 300
echo "Stack soft limit set to `ulimit -s`K";
else
echo "Can't reset stack limit - this may take a while..."