Browse Source

[sanitycheck] remove warning about unlimited amount of locked memory

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4115 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.120.1
torben 15 years ago
parent
commit
80e93bc090
1 changed files with 1 additions and 6 deletions
  1. +1
    -6
      config/os/gnu-linux/sanitycheck.c

+ 1
- 6
config/os/gnu-linux/sanitycheck.c View File

@@ -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");


Loading…
Cancel
Save