diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-11-28 15:41:41 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-11-28 21:51:28 +0100 |
commit | 6d2b2ae8349f2db566b2112ac1d918f8609bfbc1 (patch) | |
tree | b9546b683d19357ea45e7bb1a61c300615468c9c /src/home/homed-home.c | |
parent | shared/cryptsetup-util: build problematic code only in developer mode (diff) | |
download | systemd-6d2b2ae8349f2db566b2112ac1d918f8609bfbc1.tar.xz systemd-6d2b2ae8349f2db566b2112ac1d918f8609bfbc1.zip |
homed: properly handle operation exit statusses
Diffstat (limited to '')
-rw-r--r-- | src/home/homed-home.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homed-home.c b/src/home/homed-home.c index 4ff35400c4..37b3270841 100644 --- a/src/home/homed-home.c +++ b/src/home/homed-home.c @@ -3144,7 +3144,7 @@ int home_wait_for_worker(Home *h) { r = wait_for_terminate_with_timeout(h->worker_pid, 30 * USEC_PER_SEC); if (r == -ETIMEDOUT) log_warning_errno(r, "Waiting for worker process for home %s timed out. Ignoring.", h->user_name); - else + else if (r < 0) log_warning_errno(r, "Failed to wait for worker process for home %s. Ignoring.", h->user_name); (void) hashmap_remove_value(h->manager->homes_by_worker_pid, PID_TO_PTR(h->worker_pid), h); |