Browse Source

s-s-d: Use proc_stat_pid() instead of accessing the member directly

Guillem Jover 9 years ago
parent
commit
944576d35d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/start-stop-daemon.c

+ 1 - 1
utils/start-stop-daemon.c

@@ -1999,7 +1999,7 @@ do_procinit(void)
 static int
 static int
 check_proc_stat(struct proc_stat *ps)
 check_proc_stat(struct proc_stat *ps)
 {
 {
-	pid_check(ps->pid);
+	pid_check(proc_stat_pid(ps));
 	return 0;
 	return 0;
 }
 }