Lines Matching refs:pgrp
219 * This checks not only the pgrp, but falls back on the pid if no
220 * satisfactory pgrp is found. I dunno - gdb doesn't work correctly
225 struct pid *session_of_pgrp(struct pid *pgrp)
230 p = pid_task(pgrp, PIDTYPE_PGID);
232 p = pid_task(pgrp, PIDTYPE_PID);
247 static int will_become_orphaned_pgrp(struct pid *pgrp, struct task_struct *ignored_task)
251 do_each_pid_task(pgrp, PIDTYPE_PGID, p) {
257 if (task_pgrp(p->real_parent) != pgrp &&
260 } while_each_pid_task(pgrp, PIDTYPE_PGID, p);
276 static int has_stopped_jobs(struct pid *pgrp)
281 do_each_pid_task(pgrp, PIDTYPE_PGID, p) {
286 } while_each_pid_task(pgrp, PIDTYPE_PGID, p);
298 struct pid *pgrp = task_pgrp(tsk);
302 /* exit: our father is in a different pgrp than
307 /* reparent: our child is in a different pgrp than
312 if (task_pgrp(parent) != pgrp &&
314 will_become_orphaned_pgrp(pgrp, ignored_task) &&
315 has_stopped_jobs(pgrp)) {
316 __kill_pgrp_info(SIGHUP, SEND_SIG_PRIV, pgrp);
317 __kill_pgrp_info(SIGCONT, SEND_SIG_PRIV, pgrp);