Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132316077
D31561.id93831.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
658 B
Referenced Files
None
Subscribers
None
D31561.id93831.diff
View Options
Index: sys/compat/linux/linux_misc.c
===================================================================
--- sys/compat/linux/linux_misc.c
+++ sys/compat/linux/linux_misc.c
@@ -1055,6 +1055,7 @@
int
linux_wait4(struct thread *td, struct linux_wait4_args *args)
{
+ struct proc *p;
int options, id, idtype;
if (args->options & ~(LINUX_WUNTRACED | LINUX_WNOHANG |
@@ -1084,6 +1085,12 @@
} else if (args->pid < 0) {
idtype = P_PGID;
id = (id_t)-args->pid;
+ } else if (args->pid == 0) {
+ idtype = P_PGID;
+ p = td->td_proc;
+ PROC_LOCK(p);
+ id = p->p_pgrp->pg_id;
+ PROC_UNLOCK(p);
} else {
idtype = P_PID;
id = (id_t)args->pid;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 16, 8:03 PM (9 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23788143
Default Alt Text
D31561.id93831.diff (658 B)
Attached To
Mode
D31561: linux(4): Fixup wait4 handling pid equal 0 case.
Attached
Detach File
Event Timeline
Log In to Comment