FreeBSD Bugzilla – Attachment 168467 Details for
Bug 208188
multiple identical wait4 results for ptraced processes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to not generate multiple SIGCHLDs in some cases
waitx2.patch (text/plain), 485 bytes, created by
joss.upton
on 2016-03-21 20:39:30 UTC
(
hide
)
Description:
patch to not generate multiple SIGCHLDs in some cases
Filename:
MIME Type:
Creator:
joss.upton
Created:
2016-03-21 20:39:30 UTC
Size:
485 bytes
patch
obsolete
>diff --git a/kern/kern_exit.c b/kern/kern_exit.c >index e647470..ad73275 100644 >--- a/kern/kern_exit.c >+++ b/kern/kern_exit.c >@@ -863,8 +863,8 @@ proc_reap(struct thread *td, struct proc *p, int *status, int options) > * If we got the child via a ptrace 'attach', we need to give it back > * to the old parent. > */ >- if (p->p_oppid != 0) { >- t = proc_realparent(p); >+ t = proc_realparent(p); >+ if (p->p_oppid != 0 && t != q) { > PROC_LOCK(t); > PROC_LOCK(p); > CTR2(KTR_PTRACE,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 208188
:
168466
| 168467