1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-26 03:22:00 +03:00

sleep: clarify that failure setting env var is not fatal

This commit is contained in:
Lennart Poettering 2021-05-21 20:24:54 +02:00
parent 3d1321117e
commit c3565fe81f

View File

@ -236,7 +236,7 @@ static int execute(
r = setenv("SYSTEMD_SLEEP_ACTION", action, 1); r = setenv("SYSTEMD_SLEEP_ACTION", action, 1);
if (r != 0) if (r != 0)
log_warning_errno(errno, "Error setting SYSTEMD_SLEEP_ACTION=%s: %m", action); log_warning_errno(errno, "Error setting SYSTEMD_SLEEP_ACTION=%s, ignoring: %m", action);
(void) execute_directories(dirs, DEFAULT_TIMEOUT_USEC, NULL, NULL, arguments, NULL, EXEC_DIR_PARALLEL | EXEC_DIR_IGNORE_ERRORS); (void) execute_directories(dirs, DEFAULT_TIMEOUT_USEC, NULL, NULL, arguments, NULL, EXEC_DIR_PARALLEL | EXEC_DIR_IGNORE_ERRORS);
(void) lock_all_homes(); (void) lock_all_homes();