]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
service: fix main_pid_good() comment
authorLennart Poettering <lennart@poettering.net>
Wed, 27 Sep 2017 17:56:36 +0000 (19:56 +0200)
committerLennart 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

index 1a4455bd2282b4863c2b74b263710f7f06b95689..b6f929051e211cf790dc3cbca7ad4352c45681c1 100644 (file)
@@ -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 */