chiark / gitweb /
shutdown: don't complain if we cannot lock memory, to make container shutdowns clean
authorLennart Poettering <lennart@poettering.net>
Tue, 24 Apr 2012 14:56:06 +0000 (16:56 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 24 Apr 2012 14:56:06 +0000 (16:56 +0200)
src/core/shutdown.c

index 9631f92..2494bb8 100644 (file)
@@ -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);