X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=kernel%2Fexit.c;h=6a3e2e5004bad5f84f53feb0ea3b61ea4e2e8ba9;hb=e1c2296c3485158304bfad5a80e89078463d70c8;hp=5d30019ff953cf9cc421c1a37c850dca16e4c8a7;hpb=df133e8fa8e1d4afa57c84953bf80eaed2b145e0;p=deliverable%2Flinux.git diff --git a/kernel/exit.c b/kernel/exit.c index 5d30019ff953..6a3e2e5004ba 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -214,27 +214,6 @@ repeat: goto repeat; } -/* - * This checks not only the pgrp, but falls back on the pid if no - * satisfactory pgrp is found. I dunno - gdb doesn't work correctly - * without this... - * - * The caller must hold rcu lock or the tasklist lock. - */ -struct pid *session_of_pgrp(struct pid *pgrp) -{ - struct task_struct *p; - struct pid *sid = NULL; - - p = pid_task(pgrp, PIDTYPE_PGID); - if (p == NULL) - p = pid_task(pgrp, PIDTYPE_PID); - if (p != NULL) - sid = task_session(p); - - return sid; -} - /* * Determine if a process group is "orphaned", according to the POSIX * definition in 2.2.2.52. Orphaned process groups are not to be affected