From 80e93bc090cdb06718486fd7b769e59de43e6d8b Mon Sep 17 00:00:00 2001 From: torben Date: Thu, 27 Jan 2011 11:20:15 +0000 Subject: [PATCH] [sanitycheck] remove warning about unlimited amount of locked memory git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4115 0c269be4-1314-0410-8aa9-9f06e86f4224 --- config/os/gnu-linux/sanitycheck.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/config/os/gnu-linux/sanitycheck.c b/config/os/gnu-linux/sanitycheck.c index ecb0daa..237b056 100644 --- a/config/os/gnu-linux/sanitycheck.c +++ b/config/os/gnu-linux/sanitycheck.c @@ -64,12 +64,7 @@ int sanitycheck (int care_about_realtime, fprintf(stderr, "\t (this second option only works on relatively recent computers)\n"); fprintf(stderr, "--------------------------------------------------------------------------------\n\n"); } - if (system_memlock_is_unlimited()) { - fprintf(stderr, "\nMemory locking is unlimited - this is dangerous. You should probably alter the line:\n"); - fprintf(stderr, " @audio - memlock unlimited"); - fprintf(stderr, "\nin your /etc/limits.conf to read:\n"); - fprintf(stderr, " @audio - memlock %llu\n", (system_available_physical_mem()*3)/4096); - } else if (0==system_memlock_amount()) { + if (0==system_memlock_amount()) { errors++; relogin++; fprintf(stderr, "\nYou are not allowed to lock memory. Please add a line\n");