From: Sukadev Bhattiprolu <sukadev@xxxxxxxxxx> Subject: [PATCH] Use task_pgrp() in task exit Use container-safe task_pgrp() interface instead of process_group(). Signed-off-by: Sukadev Bhattiprolu <sukadev@xxxxxxxxxx> Cc: Cedric Le Goater <clg@xxxxxxxxxx> Cc: Dave Hansen <haveblue@xxxxxxxxxx> Cc: Serge Hallyn <serue@xxxxxxxxxx> Cc: containers@xxxxxxxxxxxxxx --- kernel/exit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: lx26-20-mm1/kernel/exit.c =================================================================== --- lx26-20-mm1.orig/kernel/exit.c 2007-02-16 14:59:28.000000000 -0800 +++ lx26-20-mm1/kernel/exit.c 2007-02-16 15:45:36.000000000 -0800 @@ -958,13 +958,13 @@ asmlinkage void sys_exit_group(int error static int eligible_child(pid_t pid, int options, struct task_struct *p) { if (pid > 0) { - if (p->pid != pid) + if (pid_nr(task_pid(p)) != pid) return 0; } else if (!pid) { - if (process_group(p) != process_group(current)) + if (pid_nr(task_pgrp(p)) != pid_nr(task_pgrp(current))) return 0; } else if (pid != -1) { - if (process_group(p) != -pid) + if (pid_nr(task_pgrp(p)) != -pid) return 0; } _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxx https://lists.osdl.org/mailman/listinfo/containers