summaryrefslogtreecommitdiff
path: root/kernel/sys.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 /kernel/sys.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 'kernel/sys.c')
-rw-r--r--kernel/sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sys.c b/kernel/sys.c
index 56d483f984fd..fc8e5e4060a0 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -839,7 +839,7 @@ asmlinkage long sys_setpgid(pid_t pid, pid_t pgid)
if (!p)
goto out;
- if (p->p_pptr == current || p->p_opptr == current) {
+ if (p->parent == current || p->real_parent == current) {
err = -EPERM;
if (p->session != current->session)
goto out;