mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
memory locking without root
This commit is contained in:
parent
9e418add40
commit
ed26f772e7
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ int memory_lock(size_t lock)
|
|||
warning("Failed to in increase ressource limit of locked memory. Please increase manually by running as root:");
|
||||
warning(" $ ulimit -Hl %zu", lock);
|
||||
|
||||
goto out;
|
||||
return 0;
|
||||
}
|
||||
|
||||
l.rlim_max = lock;
|
||||
|
@ -91,7 +91,7 @@ int memory_lock(size_t lock)
|
|||
|
||||
debug(LOG_MEM | 2, "Increased ressource limit of locked memory to %zd bytes", lock);
|
||||
}
|
||||
out:
|
||||
|
||||
#endif /* __arm__ */
|
||||
#ifdef _POSIX_MEMLOCK
|
||||
/* Lock all current and future memory allocations */
|
||||
|
|
Loading…
Add table
Reference in a new issue