chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core/unit: fix unit_add_target_dependencies() for units with no dependencies
[elogind.git]
/
src
/
core
/
unit.c
diff --git
a/src/core/unit.c
b/src/core/unit.c
index d529638f86a300b75a7f10a552efb6b9a24dfcea..016b1e3d869d846b29806e1be9f758c8529f249d 100644
(file)
--- a/
src/core/unit.c
+++ b/
src/core/unit.c
@@
-959,7
+959,7
@@
static int unit_add_target_dependencies(Unit *u) {
Unit *target;
Iterator i;
unsigned k;
Unit *target;
Iterator i;
unsigned k;
- int r;
+ int r
= 0
;
assert(u);
assert(u);
@@
-1833,7
+1833,7
@@
void unit_tidy_watch_pids(Unit *u, pid_t except1, pid_t except2) {
if (pid == except1 || pid == except2)
continue;
if (pid == except1 || pid == except2)
continue;
- if (
kill(pid, 0) < 0 && errno == ESRCH
)
+ if (
!pid_is_unwaited(pid)
)
set_remove(u->pids, e);
}
}
set_remove(u->pids, e);
}
}