summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour.sh.in
diff options
context:
space:
mode:
authorSampo Savolainen <v2@iki.fi>2007-01-10 22:14:41 +0000
committerSampo Savolainen <v2@iki.fi>2007-01-10 22:14:41 +0000
commitccebd73f6b5da1074a115d080c5ec90541fdda0c (patch)
tree5300ef3758bba2c65775426dbb2e60d06675ec53 /gtk2_ardour/ardour.sh.in
parent5c7ee38799c3c3a03b45a20fca62c7d6a4bde310 (diff)
Make the script report if the system introduces a memlock limit
git-svn-id: svn://localhost/ardour2/trunk@1302 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour.sh.in')
-rw-r--r--gtk2_ardour/ardour.sh.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour.sh.in b/gtk2_ardour/ardour.sh.in
index 1bf1ffa94b..c661467d01 100644
--- a/gtk2_ardour/ardour.sh.in
+++ b/gtk2_ardour/ardour.sh.in
@@ -6,6 +6,13 @@ export LD_LIBRARY_PATH=%INSTALL_PREFIX%/%LIBDIR%/ardour2:$LD_LIBRARY_PATH
# DYLD_LIBRARY_PATH is for Darwin
export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH
+MLOCK_LIMIT=$(ulimit -l)
+if [ "$MLOCK_LIMIT" != "unlimited" ]; then
+ echo "WARNING: Your system has a limit for maximum amount of locked memory!"
+ echo "This might cause Ardour to run out of memory before your system runs out of memory. You can view the memory limit with 'ulimit -l', and it is normally controlled by /etc/security/limits.conf"
+
+fi
+
exec %INSTALL_PREFIX%/%LIBDIR%/ardour2/ardour-%VERSION% $*