Prechádzať zdrojové kódy

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

Guillem Jover 18 rokov pred
rodič
commit
4ab792e665
2 zmenil súbory, kde vykonal 7 pridanie a 0 odobranie
  1. 4 0
      ChangeLog
  2. 3 0
      utils/start-stop-daemon.c

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+2008-08-03  Guillem Jover  <guillem@debian.org>
+
+	* utils/start-stop-daemon.c (check) [HAVE_KVM_H]: Call pid_is_exec.
+
 2008-08-03  Guillem Jover  <guillem@debian.org>
 
 	* src/pkg-show.c (limiteddescription): Assign directly to l_r instead

+ 3 - 0
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))