The following commit has been merged in the master branch: commit c71aa96d103e176229c19ef4394234d7a397979a Author: Guillem Jover <guil...@debian.org> Date: Sun Jan 15 07:36:07 2012 +0100
s-s-d: Rename pidexec to process_name in KVM's pid_is_cmd() diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c index 5b8ca9c..e0535c5 100644 --- a/utils/start-stop-daemon.c +++ b/utils/start-stop-daemon.c @@ -1188,7 +1188,7 @@ pid_is_cmd(pid_t pid, const char *name) kvm_t *kd; int nentries; struct kinfo_proc *kp; - char errbuf[_POSIX2_LINE_MAX], *pidexec; + char errbuf[_POSIX2_LINE_MAX], *process_name; kd = kvm_openfiles(NULL, NULL, NULL, O_RDONLY, errbuf); if (kd == NULL) @@ -1196,10 +1196,10 @@ pid_is_cmd(pid_t pid, const char *name) kp = kvm_getprocs(kd, KERN_PROC_PID, pid, &nentries); if (kp == NULL) errx(1, "%s", kvm_geterr(kd)); - pidexec = (&kp->kp_proc)->p_comm; - if (strlen(name) != strlen(pidexec)) + process_name = (&kp->kp_proc)->p_comm; + if (strlen(name) != strlen(process_name)) return false; - return (strcmp(name, pidexec) == 0) ? 1 : 0; + return (strcmp(name, process_name) == 0) ? 1 : 0; } #endif -- 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