diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-05-21 20:24:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-05-22 11:00:04 +0200 |
commit | c3565fe81ffb103471aa39ec044a1cf6a3925fea (patch) | |
tree | cf6b60deab269871537b31678d53b002ab6cdd03 /src/sleep | |
parent | sleep: if hybrid sleep fails, do regular suspend (diff) | |
download | systemd-c3565fe81ffb103471aa39ec044a1cf6a3925fea.tar.xz systemd-c3565fe81ffb103471aa39ec044a1cf6a3925fea.zip |
sleep: clarify that failure setting env var is not fatal
Diffstat (limited to 'src/sleep')
-rw-r--r-- | src/sleep/sleep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c index b05ffe72c0..a3aeb24633 100644 --- a/src/sleep/sleep.c +++ b/src/sleep/sleep.c @@ -236,7 +236,7 @@ static int execute( r = setenv("SYSTEMD_SLEEP_ACTION", action, 1); 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) lock_all_homes(); |