mirror of
https://github.com/systemd/systemd.git
synced 2026-08-07 08:30:57 +00:00
shutdown: don't complain if we cannot lock memory, to make container shutdowns clean
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user