[dpkg] 104/200: s-s-d: Use proc_stat_pid() instead of accessing the member directly

Ximin Luo infinity0 at debian.org
Wed Apr 5 15:17:25 UTC 2017


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository dpkg.

commit 944576d35d755560aa5dec99925cdc26adefd396
Author: Guillem Jover <guillem at debian.org>
Date:   Wed Jan 18 01:33:18 2017 +0100

    s-s-d: Use proc_stat_pid() instead of accessing the member directly
---
 utils/start-stop-daemon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c
index 4b08403..9d127ec 100644
--- a/utils/start-stop-daemon.c
+++ b/utils/start-stop-daemon.c
@@ -1999,7 +1999,7 @@ do_procinit(void)
 static int
 check_proc_stat(struct proc_stat *ps)
 {
-	pid_check(ps->pid);
+	pid_check(proc_stat_pid(ps));
 	return 0;
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list