projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
965d824
)
service: fix main_pid_good() comment
author
Lennart Poettering
<lennart@poettering.net>
Wed, 27 Sep 2017 17:56:36 +0000
(19:56 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 2 Oct 2017 10:58:37 +0000
(12:58 +0200)
We don't actually return -1, don't claim that.
src/core/service.c
patch
|
blob
|
history
diff --git
a/src/core/service.c
b/src/core/service.c
index
1a4455b
..
b6f9290
100644
(file)
--- a/
src/core/service.c
+++ b/
src/core/service.c
@@
-1401,8
+1401,7
@@
static int service_spawn(
static int main_pid_good(Service *s) {
assert(s);
- /* Returns 0 if the pid is dead, 1 if it is good, -1 if we
- * don't know */
+ /* Returns 0 if the pid is dead, > 0 if it is good, < 0 if we don't know */
/* If we know the pid file, then let's just check if it is
* still valid */