From: Lennart Poettering Date: Tue, 24 Apr 2012 14:56:06 +0000 (+0200) Subject: shutdown: don't complain if we cannot lock memory, to make container shutdowns clean X-Git-Tag: v183~195 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b55d0651c0433aee6bbec0516a0c2eb001c3fc31;p=systemd shutdown: don't complain if we cannot lock memory, to make container shutdowns clean --- 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);