X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=kernel%2Facct.c;h=521dfa53cb999657ce8971494f1f573d88d55df7;hb=2b79aac9038ee52fd8d89216b1a3ec9bd8285fac;hp=fce53d8df8a7ade114a002885a8cbfc1cdbedc49;hpb=a9e82d3a02247af6b729be0a963862d70cb25bf9;p=linux-2.6-omap-h63xx.git diff --git a/kernel/acct.c b/kernel/acct.c index fce53d8df8a..521dfa53cb9 100644 --- a/kernel/acct.c +++ b/kernel/acct.c @@ -413,7 +413,7 @@ static u32 encode_float(u64 value) * The acct_process() call is the workhorse of the process * accounting system. The struct acct is built here and then written * into the accounting file. This function should only be called from - * do_exit(). + * do_exit() or when switching to a different output file. */ /* @@ -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);