diff options
author | Eric Blake <ebb9@byu.net> | 2008-08-03 14:34:31 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2008-08-03 14:34:31 -0600 |
commit | e0835c041b5ae5b1f0c5da9c7850e57166695f78 (patch) | |
tree | 619b1f3277035143921cd1c6204ad71bf84de898 | |
parent | b468fbd8067fc3ada29c796cc197605626662957 (diff) | |
download | m4-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-- | ChangeLog | 6 | ||||
-rwxr-xr-x | checks/stackovf.test | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -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..." |