From: Lennart Poettering Date: Tue, 28 Nov 2023 14:41:41 +0000 (+0100) Subject: homed: properly handle operation exit statusses X-Git-Tag: v255~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d2b2ae8349f2db566b2112ac1d918f8609bfbc1;p=platform%2Fupstream%2Fsystemd.git homed: properly handle operation exit statusses --- diff --git a/src/home/homed-home.c b/src/home/homed-home.c index 4ff3540..37b3270 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);