]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/manager.c
core: split up manager_get_unit_by_pid()
[thirdparty/systemd.git] / src / core / manager.c
index c2d262a5d30c1981275daeb006dbfe44d0205a34..fc10ddb5d9466d29ac03fdc9353ad44b3dfc9bc8 100644 (file)
@@ -1585,7 +1585,7 @@ static int manager_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t
 
                 /* Notify every unit that might be interested, but try
                  * to avoid notifying the same one multiple times. */
-                u1 = manager_get_unit_by_pid(m, ucred->pid);
+                u1 = manager_get_unit_by_pid_cgroup(m, ucred->pid);
                 if (u1) {
                         manager_invoke_notify_message(m, u1, ucred->pid, buf, n, fds);
                         found = true;
@@ -1663,7 +1663,7 @@ static int manager_dispatch_sigchld(Manager *m) {
 
                         /* And now figure out the unit this belongs
                          * to, it might be multiple... */
-                        u1 = manager_get_unit_by_pid(m, si.si_pid);
+                        u1 = manager_get_unit_by_pid_cgroup(m, si.si_pid);
                         if (u1)
                                 invoke_sigchld_event(m, u1, &si);
                         u2 = hashmap_get(m->watch_pids1, PID_TO_PTR(si.si_pid));