diff options
author | Cedric Le Goater <clg@fr.ibm.com> | 2006-12-08 02:37:55 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 08:28:51 -0800 |
commit | 1ec320afdc9552c92191d5f89fcd1ebe588334ca (patch) | |
tree | e526fb29f9487f1ea34aa9ccdf14c318aea2159f /kernel/fork.c | |
parent | 937949d9edbf4049bd41af6c9f92c26280584564 (diff) | |
download | op-kernel-dev-1ec320afdc9552c92191d5f89fcd1ebe588334ca.zip op-kernel-dev-1ec320afdc9552c92191d5f89fcd1ebe588334ca.tar.gz |
[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>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 298c4d6..60d2644 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -1259,7 +1259,7 @@ static struct task_struct *copy_process(unsigned long clone_flags, if (thread_group_leader(p)) { p->signal->tty = current->signal->tty; p->signal->pgrp = process_group(current); - p->signal->session = process_session(current); + set_signal_session(p->signal, process_session(current)); attach_pid(p, PIDTYPE_PGID, process_group(p)); attach_pid(p, PIDTYPE_SID, process_session(p)); |