summaryrefslogtreecommitdiffstats
path: root/usr.sbin/watchdogd
diff options
context:
space:
mode:
authorzont <zont@FreeBSD.org>2012-08-30 08:07:37 +0000
committerzont <zont@FreeBSD.org>2012-08-30 08:07:37 +0000
commit2d3909f02734dfa4df2080ff578939a459fea06f (patch)
tree969e77a245ccf4a46f7273f95d744ff6663bd6aa /usr.sbin/watchdogd
parent2f4305a824550e60ecee3d69dc0198140086a961 (diff)
downloadFreeBSD-src-2d3909f02734dfa4df2080ff578939a459fea06f.zip
FreeBSD-src-2d3909f02734dfa4df2080ff578939a459fea06f.tar.gz
- It's also need to lock current memory.
Approved by: kib (mentor) MFC after: 1 week
Diffstat (limited to 'usr.sbin/watchdogd')
-rw-r--r--usr.sbin/watchdogd/watchdogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/watchdogd/watchdogd.c b/usr.sbin/watchdogd/watchdogd.c
index f0896a9..cce84e1 100644
--- a/usr.sbin/watchdogd/watchdogd.c
+++ b/usr.sbin/watchdogd/watchdogd.c
@@ -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();
OpenPOWER on IntegriCloud