Lines Matching refs:pgrp
234 struct pid *session_of_pgrp(struct pid *pgrp) in session_of_pgrp() argument
239 p = pid_task(pgrp, PIDTYPE_PGID); in session_of_pgrp()
241 p = pid_task(pgrp, PIDTYPE_PID); in session_of_pgrp()
256 static int will_become_orphaned_pgrp(struct pid *pgrp, struct task_struct *ignored_task) in will_become_orphaned_pgrp() argument
260 do_each_pid_task(pgrp, PIDTYPE_PGID, p) { in will_become_orphaned_pgrp()
266 if (task_pgrp(p->real_parent) != pgrp && in will_become_orphaned_pgrp()
269 } while_each_pid_task(pgrp, PIDTYPE_PGID, p); in will_become_orphaned_pgrp()
285 static int has_stopped_jobs(struct pid *pgrp) in has_stopped_jobs() argument
290 do_each_pid_task(pgrp, PIDTYPE_PGID, p) { in has_stopped_jobs()
295 } while_each_pid_task(pgrp, PIDTYPE_PGID, p); in has_stopped_jobs()
307 struct pid *pgrp = task_pgrp(tsk); in kill_orphaned_pgrp() local
321 if (task_pgrp(parent) != pgrp && in kill_orphaned_pgrp()
323 will_become_orphaned_pgrp(pgrp, ignored_task) && in kill_orphaned_pgrp()
324 has_stopped_jobs(pgrp)) { in kill_orphaned_pgrp()
325 __kill_pgrp_info(SIGHUP, SEND_SIG_PRIV, pgrp); in kill_orphaned_pgrp()
326 __kill_pgrp_info(SIGCONT, SEND_SIG_PRIV, pgrp); in kill_orphaned_pgrp()