Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linux/linux_misc.c
Show First 20 Lines • Show All 1,071 Lines • ▼ Show 20 Lines | if ((args->options & __WALL) != 0) | ||||
options |= WUNTRACED | WCONTINUED | WLINUXCLONE; | options |= WUNTRACED | WCONTINUED | WLINUXCLONE; | ||||
if (args->pid == WAIT_ANY) { | if (args->pid == WAIT_ANY) { | ||||
idtype = P_ALL; | idtype = P_ALL; | ||||
id = 0; | id = 0; | ||||
} else if (args->pid < 0) { | } else if (args->pid < 0) { | ||||
idtype = P_PGID; | idtype = P_PGID; | ||||
id = (id_t)-args->pid; | id = (id_t)-args->pid; | ||||
} else if (args->pid == 0) { | |||||
idtype = P_PGID; | |||||
id = td->td_ucred->cr_rgid; | |||||
emaste: this should be `pg_id` no? | |||||
dchaginAuthorUnsubmitted Done Inline Actionsah)) sure! dchagin: ah)) sure! | |||||
} else { | } else { | ||||
idtype = P_PID; | idtype = P_PID; | ||||
id = (id_t)args->pid; | id = (id_t)args->pid; | ||||
} | } | ||||
return (linux_common_wait(td, idtype, id, args->status, options, | return (linux_common_wait(td, idtype, id, args->status, options, | ||||
args->rusage, NULL)); | args->rusage, NULL)); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,787 Lines • Show Last 20 Lines |
this should be pg_id no?