• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/kernel/

Lines Matching defs:pgrp

197  * This checks not only the pgrp, but falls back on the pid if no
198 * satisfactory pgrp is found. I dunno - gdb doesn't work correctly
203 struct pid *session_of_pgrp(struct pid *pgrp)
208 p = pid_task(pgrp, PIDTYPE_PGID);
210 p = pid_task(pgrp, PIDTYPE_PID);
225 static int will_become_orphaned_pgrp(struct pid *pgrp, struct task_struct *ignored_task)
230 do_each_pid_task(pgrp, PIDTYPE_PGID, p) {
235 if (task_pgrp(p->real_parent) != pgrp &&
240 } while_each_pid_task(pgrp, PIDTYPE_PGID, p);
255 static int has_stopped_jobs(struct pid *pgrp)
260 do_each_pid_task(pgrp, PIDTYPE_PGID, p) {
265 } while_each_pid_task(pgrp, PIDTYPE_PGID, p);
307 void __set_special_pids(pid_t session, pid_t pgrp)
316 if (process_group(curr) != pgrp) {
318 curr->signal->pgrp = pgrp;
319 attach_pid(curr, PIDTYPE_PGID, find_pid(pgrp));
323 static void set_special_pids(pid_t session, pid_t pgrp)
326 __set_special_pids(session, pgrp);
658 * Case ii: Our child is in a different pgrp
660 * outside, so the child pgrp is now orphaned.
664 struct pid *pgrp = task_pgrp(p);
666 if (will_become_orphaned_pgrp(pgrp, NULL) &&
667 has_stopped_jobs(pgrp)) {
668 __kill_pgrp_info(SIGHUP, SEND_SIG_PRIV, pgrp);
669 __kill_pgrp_info(SIGCONT, SEND_SIG_PRIV, pgrp);
749 struct pid *pgrp;
792 * Case i: Our father is in a different pgrp than we are
793 * and we were the only connection outside, so our pgrp
799 pgrp = task_pgrp(tsk);
800 if ((task_pgrp(t) != pgrp) &&
802 will_become_orphaned_pgrp(pgrp, tsk) &&
803 has_stopped_jobs(pgrp)) {
804 __kill_pgrp_info(SIGHUP, SEND_SIG_PRIV, pgrp);
805 __kill_pgrp_info(SIGCONT, SEND_SIG_PRIV, pgrp);