[PATCH] add process_session() helper routine: deprecate old field
Add an anonymous union and ((deprecated)) to catch direct usage of the session field. [akpm@osdl.org: fix various missed conversions] [jdike@addtoit.com: fix UML bug] Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Cedric Le Goater <clg@fr.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
937949d9ed
commit
1ec320afdc
@ -381,7 +381,7 @@ static int do_task_stat(struct task_struct *task, char * buffer, int whole)
|
||||
stime = cputime_add(stime, sig->stime);
|
||||
}
|
||||
|
||||
sid = sig->session;
|
||||
sid = signal_session(sig);
|
||||
pgid = process_group(task);
|
||||
ppid = rcu_dereference(task->real_parent)->tgid;
|
||||
|
||||
|
Reference in New Issue
Block a user