Lines Matching refs:group_leader
1042 struct task_struct *group_leader = current->group_leader; in SYSCALL_DEFINE2() local
1047 pid = task_pid_vnr(group_leader); in SYSCALL_DEFINE2()
1068 if (same_thread_group(p->real_parent, group_leader)) { in SYSCALL_DEFINE2()
1070 if (task_session(p) != task_session(group_leader)) in SYSCALL_DEFINE2()
1077 if (p != group_leader) in SYSCALL_DEFINE2()
1091 if (!g || task_session(g) != task_session(group_leader)) in SYSCALL_DEFINE2()
1182 struct task_struct *curr = current->group_leader; in set_special_pids()
1193 struct task_struct *group_leader = current->group_leader; in ksys_setsid() local
1194 struct pid *sid = task_pid(group_leader); in ksys_setsid()
1200 if (group_leader->signal->leader) in ksys_setsid()
1209 group_leader->signal->leader = 1; in ksys_setsid()
1212 proc_clear_tty(group_leader); in ksys_setsid()
1218 proc_sid_connector(group_leader); in ksys_setsid()
1219 sched_autogroup_create_attach(group_leader); in ksys_setsid()
1491 task_lock(current->group_leader); in SYSCALL_DEFINE2()
1493 task_unlock(current->group_leader); in SYSCALL_DEFINE2()
1511 task_lock(current->group_leader); in COMPAT_SYSCALL_DEFINE2()
1513 task_unlock(current->group_leader); in COMPAT_SYSCALL_DEFINE2()
1586 task_lock(tsk->group_leader); in do_prlimit()
1602 task_unlock(tsk->group_leader); in do_prlimit()