- 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

View File

@ -118,7 +118,7 @@ main(int argc, char *argv[])
pidfile_write(pfh); pidfile_write(pfh);
if (madvise(0, 0, MADV_PROTECT) != 0) if (madvise(0, 0, MADV_PROTECT) != 0)
warn("madvise failed"); warn("madvise failed");
if (mlockall(MCL_FUTURE) != 0) if (mlockall(MCL_CURRENT | MCL_FUTURE) != 0)
warn("mlockall failed"); warn("mlockall failed");
watchdog_loop(); watchdog_loop();