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:
parent
3d1321117e
commit
c3565fe81f
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user