- It's also need to lock current memory.
Approved by: kib (mentor) MFC after: 1 week
This commit is contained in:
parent
e145130e71
commit
193e2b5546
@ -118,7 +118,7 @@ main(int argc, char *argv[])
|
||||
pidfile_write(pfh);
|
||||
if (madvise(0, 0, MADV_PROTECT) != 0)
|
||||
warn("madvise failed");
|
||||
if (mlockall(MCL_FUTURE) != 0)
|
||||
if (mlockall(MCL_CURRENT | MCL_FUTURE) != 0)
|
||||
warn("mlockall failed");
|
||||
|
||||
watchdog_loop();
|
||||
|
Loading…
Reference in New Issue
Block a user