Skip to content
Snippets Groups Projects
Commit 208f7c75 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Now sets virtual memory ulimit to 64MB to avoid exhausting all memory.

Rev: bin/smartlink:1.12
parent 7a911a4d
No related branches found
No related tags found
No related merge requests found
...@@ -108,6 +108,11 @@ if test x$# != x0 ; then ...@@ -108,6 +108,11 @@ if test x$# != x0 ; then
esac esac
fi fi
if test "x$NO_ULIMIT" = "x"; then
# Limit virtual memory usage to 64MB.
ulimit -v 65536 >/dev/null 2>&1
fi
# Used to be exec, but Digital-Unix's stupid sh has buggy variable-expansion. # Used to be exec, but Digital-Unix's stupid sh has buggy variable-expansion.
# /grubba # /grubba
eval $LINKER $LDOPTS eval $LINKER $LDOPTS
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment