Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions kernel/exit.c
Original file line number Diff line number Diff line change
@@ -1741,6 +1741,15 @@ int kernel_waitid_prepare(struct wait_opts *wo, int which, pid_t upid,

pid = find_get_pid(upid);
break;
case P_SID:
type = PIDTYPE_SID;
if (upid < 0)
return -EINVAL;

if (upid)
pid = find_get_pid(upid);
else
pid = get_task_pid(current, PIDTYPE_SID);
case P_PGID:
type = PIDTYPE_PGID;
if (upid < 0)