]> err.no Git - systemd/commitdiff
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 9631f92885d44e816979754c1861a514656b0352..2494bb86a120c15bf735e090b453e584156b749c 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);