From b55d0651c0433aee6bbec0516a0c2eb001c3fc31 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 24 Apr 2012 16:56:06 +0200 Subject: [PATCH] shutdown: don't complain if we cannot lock memory, to make container shutdowns clean --- src/core/shutdown.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/shutdown.c b/src/core/shutdown.c index 9631f928..2494bb86 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); -- 2.39.5