Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171472716
D15880.id43998.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
598 B
Referenced Files
None
Subscribers
None
D15880.id43998.diff
View Options
Index: sys/compat/linux/linux_fork.c
===================================================================
--- sys/compat/linux/linux_fork.c
+++ sys/compat/linux/linux_fork.c
@@ -40,6 +40,7 @@
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/proc.h>
+#include <sys/ptrace.h>
#include <sys/racct.h>
#include <sys/sched.h>
#include <sys/syscallsubr.h>
@@ -352,6 +353,9 @@
thread_unlock(td);
if (P_SHOULDSTOP(p))
newtd->td_flags |= TDF_ASTPENDING | TDF_NEEDSUSPCHK;
+
+ if (p->p_ptevents & PTRACE_LWP)
+ newtd->td_dbgflags |= TDB_BORN;
PROC_UNLOCK(p);
tidhash_add(newtd);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 12, 7:47 AM (7 m, 14 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38777559
Default Alt Text
D15880.id43998.diff (598 B)
Attached To
Mode
D15880: linux_clone_thread: mark new thread as TDB_BORN
Attached
Detach File
Event Timeline
Log In to Comment