mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
acct: real_parent ppid
The ac_ppid field reported in process accounting records should match what getppid() would have returned to that process, regardless of whether a debugger is attached. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
45626bb26a
commit
b59f8197c5
1 changed files with 1 additions and 1 deletions
|
@ -482,7 +482,7 @@ static void do_acct_process(struct file *file)
|
|||
#endif
|
||||
#if ACCT_VERSION==3
|
||||
ac.ac_pid = current->tgid;
|
||||
ac.ac_ppid = current->parent->tgid;
|
||||
ac.ac_ppid = current->real_parent->tgid;
|
||||
#endif
|
||||
|
||||
spin_lock_irq(¤t->sighand->siglock);
|
||||
|
|
Loading…
Reference in a new issue