diff options
author | zont <zont@FreeBSD.org> | 2012-08-30 08:07:37 +0000 |
---|---|---|
committer | zont <zont@FreeBSD.org> | 2012-08-30 08:07:37 +0000 |
commit | 2d3909f02734dfa4df2080ff578939a459fea06f (patch) | |
tree | 969e77a245ccf4a46f7273f95d744ff6663bd6aa /usr.sbin/watchdogd/watchdogd.c | |
parent | 2f4305a824550e60ecee3d69dc0198140086a961 (diff) | |
download | FreeBSD-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/watchdogd.c')
-rw-r--r-- | usr.sbin/watchdogd/watchdogd.c | 2 |
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(); |