]> err.no Git - systemd/commitdiff
manager: mention to which unit a SIGCHLD belongs
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Apr 2010 01:19:00 +0000 (03:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Apr 2010 01:19:00 +0000 (03:19 +0200)
manager.c

index ddac4984acf324c8b5a00294d5a678f387bf67a0..6c73acf403fc0abe43be94abea08ec05aaa3e495 100644 (file)
--- a/manager.c
+++ b/manager.c
@@ -1415,6 +1415,8 @@ static int manager_dispatch_sigchld(Manager *m) {
                 if (!(u = hashmap_remove(m->watch_pids, UINT32_TO_PTR(si.si_pid))))
                         continue;
 
+                log_debug("child %llu belongs to %s", (long long unsigned) si.si_pid, unit_id(u));
+
                 UNIT_VTABLE(u)->sigchld_event(u, si.si_pid, si.si_code, si.si_status);
         }