chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
service: don't report alien child as alive when it's not
[elogind.git]
/
src
/
core
/
service.c
diff --git
a/src/core/service.c
b/src/core/service.c
index 20990d2a19bfcd97e0c8dc7f5bfdf612c33f84e7..dadd98123cf6e15a12c6987cf4c0a5e4eaceaaa8 100644
(file)
--- a/
src/core/service.c
+++ b/
src/core/service.c
@@
-1865,7
+1865,7
@@
static int main_pid_good(Service *s) {
/* If it's an alien child let's check if it is still
* alive ... */
- if (s->main_pid_alien)
+ if (s->main_pid_alien
&& s->main_pid > 0
)
return kill(s->main_pid, 0) >= 0 || errno != ESRCH;
/* .. otherwise assume we'll get a SIGCHLD for it,