summaryrefslogtreecommitdiffstats
path: root/src/home/homed-home.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-11-28 15:41:41 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-11-28 21:51:28 +0100
commit6d2b2ae8349f2db566b2112ac1d918f8609bfbc1 (patch)
treeb9546b683d19357ea45e7bb1a61c300615468c9c /src/home/homed-home.c
parentshared/cryptsetup-util: build problematic code only in developer mode (diff)
downloadsystemd-6d2b2ae8349f2db566b2112ac1d918f8609bfbc1.tar.xz
systemd-6d2b2ae8349f2db566b2112ac1d918f8609bfbc1.zip
homed: properly handle operation exit statusses
Diffstat (limited to '')
-rw-r--r--src/home/homed-home.c2
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);