diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-24 16:56:06 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-24 16:56:06 +0200 |
commit | b55d0651c0433aee6bbec0516a0c2eb001c3fc31 (patch) | |
tree | 72e03d390e48bf1e71a0d6e6135f8ebca1eba02f /src/core/shutdown.c | |
parent | 2b93b027d3a68b5d7ae26d0c2cd487eb5019d2a9 (diff) |
shutdown: don't complain if we cannot lock memory, to make container shutdowns clean
Diffstat (limited to 'src/core/shutdown.c')
-rw-r--r-- | src/core/shutdown.c | 3 |
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); |