mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 15:42:32 +00:00
[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:
parent
937949d9ed
commit
1ec320afdc
6 changed files with 27 additions and 11 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue