shutdown: don't complain if we cannot lock memory, to make container shutdowns clean

This commit is contained in:
Lennart Poettering
2012-04-24 16:56:06 +02:00
parent 2b93b027d3
commit b55d0651c0

View 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);