summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/shutdown.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/shutdown.c b/src/core/shutdown.c
index 9631f92885..2494bb86a1 100644
--- a/src/core/shutdown.c
+++ b/src/core/shutdown.c
@@ -347,8 +347,7 @@ int main(int argc, char *argv[]) {
use_watchdog = !!getenv("WATCHDOG_USEC");
/* lock us into memory */
- if (mlockall(MCL_CURRENT|MCL_FUTURE) != 0)
- log_warning("Cannot lock process memory: %m");
+ mlockall(MCL_CURRENT|MCL_FUTURE);
log_info("Sending SIGTERM to remaining processes...");
send_signal(SIGTERM);