The following commit has been merged in the master branch:
commit 2ecaea9677e9d4307aabfbecc00a77e99a05457b
Author: Guillem Jover <guil...@debian.org>
Date:   Sat Apr 30 21:01:27 2011 +0200

    s-s-d: Return status_unknown on error reading from the pid file
    
    Otherwise the variable was uninitialized.

diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c
index 2fba385..d50e0e0 100644
--- a/utils/start-stop-daemon.c
+++ b/utils/start-stop-daemon.c
@@ -1243,6 +1243,8 @@ do_pidfile(const char *name)
 
                if (fscanf(f, "%d", &pid) == 1)
                        pid_status = pid_check(pid);
+               else
+                       pid_status = status_unknown;
                fclose(f);
 
                if (pid_status == status_dead)

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to