diff options
| author | Linus Torvalds <torvalds@home.osdl.org> | 2003-10-09 01:13:56 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-10-09 01:13:56 -0700 |
| commit | 06349d9d2b7f57ebce92b2838a55722934e394f6 (patch) | |
| tree | ec8020b2672cea8a8ff194f6a345ae1724baec4e /fs/proc/array.c | |
| parent | 6601345fc15e63c7972db7118df6e033678977f7 (diff) | |
Revert the process group accessor functions. They are buggy, and
cause NULL pointer references in /proc.
Moreover, it's questionable whether the whole thing makes sense at all.
Per-thread state is good.
Cset exclude: davem@nuts.ninka.net|ChangeSet|20031005193942|01097
Cset exclude: akpm@osdl.org[torvalds]|ChangeSet|20031005180420|42200
Cset exclude: akpm@osdl.org[torvalds]|ChangeSet|20031005180411|42211
Diffstat (limited to 'fs/proc/array.c')
| -rw-r--r-- | fs/proc/array.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index 7029fc9eb211..1eba76a6f603 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -304,9 +304,9 @@ int proc_pid_stat(struct task_struct *task, char * buffer) mm = task->mm; if(mm) mm = mmgrab(mm); - if (process_tty(task)) { - tty_pgrp = process_tty(task)->pgrp; - tty_nr = new_encode_dev(tty_devnum(process_tty(task))); + if (task->tty) { + tty_pgrp = task->tty->pgrp; + tty_nr = new_encode_dev(tty_devnum(task->tty)); } task_unlock(task); if (mm) { @@ -345,7 +345,7 @@ int proc_pid_stat(struct task_struct *task, char * buffer) state, ppid, process_group(task), - process_session(task), + task->session, tty_nr, tty_pgrp, task->flags, |
