1
0
Fork 0
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:
Divya Laxetti 2019-06-27 15:45:45 +02:00
parent 9e418add40
commit ed26f772e7

View file

@ -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 */