Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156922123
D56928.id177563.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
797 B
Referenced Files
None
Subscribers
None
D56928.id177563.diff
View Options
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -1411,17 +1411,15 @@
* register file or specifying the pc, make the thread
* xstopped by waking it up.
*/
- if ((td2->td_dbgflags & TDB_USERWR) != 0) {
- if (pt_attach_transparent) {
- thread_lock(td2);
- if (TD_ON_SLEEPQ(td2) &&
- (td2->td_flags & TDF_SINTR) != 0) {
- sleepq_abort(td2, EINTR);
- } else {
- thread_unlock(td2);
- }
+ if ((td2->td_dbgflags & TDB_USERWR) != 0 &&
+ pt_attach_transparent) {
+ thread_lock(td2);
+ if (TD_ON_SLEEPQ(td2) &&
+ (td2->td_flags & TDF_SINTR) != 0) {
+ sleepq_abort(td2, EINTR);
+ } else {
+ thread_unlock(td2);
}
- td2->td_dbgflags &= ~TDB_USERWR;
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 18, 9:22 AM (11 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32956027
Default Alt Text
D56928.id177563.diff (797 B)
Attached To
Mode
D56928: ptrace: clear TDP_USERWR after transparent attach only on attach
Attached
Detach File
Event Timeline
Log In to Comment