1
0
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:
Andrey Zonov 2012-08-30 08:07:37 +00:00
parent e145130e71
commit 193e2b5546
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239896

View File

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