diff options
author | green <green@FreeBSD.org> | 2004-07-28 22:13:04 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2004-07-28 22:13:04 +0000 |
commit | f63839abf8ece1e53da383d4532b4b9291f58193 (patch) | |
tree | f9184d0d4322337976545e141fa6ae946272a1df | |
parent | 98d8f3741c9752729a6684372287457a18580e7f (diff) | |
download | FreeBSD-src-f63839abf8ece1e53da383d4532b4b9291f58193.zip FreeBSD-src-f63839abf8ece1e53da383d4532b4b9291f58193.tar.gz |
Disable memory locking that could keep watchdogd from deadlocking itself
if the swap subsystem failed.
Requested by: phk
-rw-r--r-- | usr.sbin/watchdogd/watchdogd.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/usr.sbin/watchdogd/watchdogd.c b/usr.sbin/watchdogd/watchdogd.c index 298d39e..0c1b625 100644 --- a/usr.sbin/watchdogd/watchdogd.c +++ b/usr.sbin/watchdogd/watchdogd.c @@ -34,7 +34,6 @@ __FBSDID("$FreeBSD$"); #include <sys/rtprio.h> #include <sys/stat.h> #include <sys/time.h> -#include <sys/mman.h> #include <sys/watchdog.h> #include <err.h> @@ -88,9 +87,6 @@ main(int argc, char *argv[]) if (rtprio(RTP_SET, 0, &rtp) == -1) err(EX_OSERR, "rtprio"); - if (mlockall(MCL_CURRENT | MCL_FUTURE) == -1) - err(EX_OSERR, "mlockall"); - if (watchdog_init() == -1) errx(EX_SOFTWARE, "unable to initialize watchdog"); |