summaryrefslogtreecommitdiff
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2002-03-14 21:20:04 -0800
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-03-14 21:20:04 -0800
commit3154d91ded003170229670313ff6ded47bcf640e (patch)
tree6a9dfa1f8715895b00dadf63110a2dc49ef46fcd /fs/proc/array.c
parent5d043fece463db6fcd69dfe1ec2a094d352af15c (diff)
[PATCH] wait4() WIFSTOPPED starvation fix #1/2
This patch (#1) just converts the task_struct to use struct list_head rather than direct pointers for maintaining the children list.
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r--fs/proc/array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c
index 7186199d5e4b..d216d47ddcdc 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -159,7 +159,7 @@ static inline char * task_state(struct task_struct *p, char *buffer)
"Uid:\t%d\t%d\t%d\t%d\n"
"Gid:\t%d\t%d\t%d\t%d\n",
get_task_state(p), p->tgid,
- p->pid, p->pid ? p->p_opptr->pid : 0, 0,
+ p->pid, p->pid ? p->real_parent->pid : 0, 0,
p->uid, p->euid, p->suid, p->fsuid,
p->gid, p->egid, p->sgid, p->fsgid);
read_unlock(&tasklist_lock);
@@ -340,7 +340,7 @@ int proc_pid_stat(struct task_struct *task, char * buffer)
nice = task_nice(task);
read_lock(&tasklist_lock);
- ppid = task->pid ? task->p_opptr->pid : 0;
+ ppid = task->pid ? task->real_parent->pid : 0;
read_unlock(&tasklist_lock);
res = sprintf(buffer,"%d (%s) %c %d %d %d %d %d %lu %lu \
%lu %lu %lu %lu %lu %ld %ld %ld %ld %ld %ld %lu %lu %ld %lu %lu %lu %lu %lu \