Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178111334
D31567.1795991726.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D31567.1795991726.diff
View Options
Index: sys/compat/linux/linux_misc.c
===================================================================
--- sys/compat/linux/linux_misc.c
+++ sys/compat/linux/linux_misc.c
@@ -1096,6 +1096,7 @@
{
idtype_t idtype;
int error, options;
+ pid_t id;
if (args->options & ~(LINUX_WNOHANG | LINUX_WNOWAIT | LINUX_WEXITED |
LINUX_WSTOPPED | LINUX_WCONTINUED | __WCLONE | __WNOTHREAD | __WALL))
@@ -1107,6 +1108,7 @@
options |= WEXITED | WTRAPPED | WUNTRACED |
WCONTINUED | WLINUXCLONE;
+ id = args->id;
switch (args->idtype) {
case LINUX_P_ALL:
idtype = P_ALL;
@@ -1117,9 +1119,12 @@
idtype = P_PID;
break;
case LINUX_P_PGID:
- if (args->id <= 0)
+ if (args->id < 0)
return (EINVAL);
idtype = P_PGID;
+ error = kern_getpgid(td, args->id, &id);
+ if (error != 0)
+ return (error);
break;
case LINUX_P_PIDFD:
LINUX_RATELIMIT_MSG("unsupported waitid P_PIDFD idtype");
@@ -1128,7 +1133,7 @@
return (EINVAL);
}
- error = linux_common_wait(td, idtype, args->id, NULL, options,
+ error = linux_common_wait(td, idtype, id, NULL, options,
args->rusage, args->info);
td->td_retval[0] = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 29, 10:35 PM (1 h, 26 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42097498
Default Alt Text
D31567.1795991726.diff (1 KB)
Attached To
Mode
D31567: linux(4): Fixup waitid handling P_PGID idtype.
Attached
Detach File
Event Timeline