From: Roland McGrath Date: Mon, 7 Jan 2008 22:23:34 +0000 (-0800) Subject: acct: real_parent ppid X-Git-Tag: v2.6.24-rc8~72 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b59f8197c5ddd0d5d74b663650be5449dacd34aa;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Linus Torvalds --- diff --git a/kernel/acct.c b/kernel/acct.c index cf19547cc9e..521dfa53cb9 100644 --- a/kernel/acct.c +++ b/kernel/acct.c @@ -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);