tty: Move session_of_pgrp() and make static
[deliverable/linux.git] / kernel / exit.c
index 5d30019ff953cf9cc421c1a37c850dca16e4c8a7..6a3e2e5004bad5f84f53feb0ea3b61ea4e2e8ba9 100644 (file)
@@ -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
This page took 0.024293 seconds and 5 git commands to generate.