Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
d3928317
Commit
d3928317
authored
Apr 04, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increment suspend count before attempting attach in suspend_for_ptrace.
parent
ef88637f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ptrace.c
server/ptrace.c
+6
-6
No files found.
server/ptrace.c
View file @
d3928317
...
@@ -166,12 +166,12 @@ int suspend_for_ptrace( struct thread *thread )
...
@@ -166,12 +166,12 @@ int suspend_for_ptrace( struct thread *thread )
suspend_thread
(
thread
,
0
);
suspend_thread
(
thread
,
0
);
return
1
;
return
1
;
}
}
if
(
attach_thread
(
thread
))
/* can't stop a thread while initialisation is in progress */
{
if
(
!
thread
->
unix_pid
||
thread
->
process
->
init_event
)
goto
error
;
/* the attach will have suspended it */
thread
->
suspend
++
;
thread
->
suspend
++
;
if
(
attach_thread
(
thread
))
return
1
;
return
1
;
thread
->
suspend
--
;
}
error:
set_error
(
STATUS_ACCESS_DENIED
);
set_error
(
STATUS_ACCESS_DENIED
);
return
0
;
return
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment