Subject: [PATCH] Fix wait so that if we specify a filedescriptor things work properly. From: Eric W. Biederman Date: 1129892227 -0600 --- kernel/exit.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 67e861642125073c58df47f4ac8a62a2f0db2b8c diff --git a/kernel/exit.c b/kernel/exit.c index b620670..82b39c0 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -947,13 +947,13 @@ asmlinkage void sys_exit_group(int error static int eligible_child(pid_t pid, int options, task_t *p) { if (pid > 0) { - if (p->pid != pid) + if (p->pid != pid_from_user(pid)) return 0; } else if (!pid) { if (process_group(p) != process_group(current)) return 0; } else if (pid != -1) { - if (process_group(p) != -pid) + if (process_group(p) != pid_from_user(-pid)) return 0; } -- 1.0.GIT