mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
- 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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239896
@ -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