The following commit has been merged in the master branch:
commit 4ab792e665280c1a535045ee29f2a877304fb514
Author: Guillem Jover <[EMAIL PROTECTED]>
Date:   Sun Aug 3 20:50:17 2008 +0300

    s-s-d: When checking for a pid call pid_is_exec on KVM systems

diff --git a/ChangeLog b/ChangeLog
index c945758..1034e8c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-08-03  Guillem Jover  <[EMAIL PROTECTED]>
 
+       * utils/start-stop-daemon.c (check) [HAVE_KVM_H]: Call pid_is_exec.
+
+2008-08-03  Guillem Jover  <[EMAIL PROTECTED]>
+
        * src/pkg-show.c (limiteddescription): Assign directly to l_r instead
        of a temporary variable.
 
diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c
index 12d68e6..cb37932 100644
--- a/utils/start-stop-daemon.c
+++ b/utils/start-stop-daemon.c
@@ -924,6 +924,9 @@ check(pid_t pid)
 #if defined(OSLinux) || defined(OShpux)
        if (execname && !pid_is_exec(pid, &exec_stat))
                return;
+#elif defined(HAVE_KVM_H)
+       if (execname && !pid_is_exec(pid, execname))
+               return;
 #elif defined(OSHURD) || defined(OSFreeBSD) || defined(OSNetBSD)
        /* Let's try this to see if it works */
        if (execname && !pid_is_cmd(pid, execname))

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to