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
19a497cf
Commit
19a497cf
authored
Nov 25, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More portability fixes (thanks to Juergen Lock).
parent
ba6d54a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ptrace.c
server/ptrace.c
+4
-4
No files found.
server/ptrace.c
View file @
19a497cf
...
...
@@ -64,10 +64,10 @@ void wait4_thread( struct thread *thread, int signal )
if
(
!
thread
)
if
(
!
(
thread
=
get_thread_from_pid
(
pid
)))
break
;
if
(
!
(
thread
->
process
->
suspend
+
thread
->
suspend
))
ptrace
(
PTRACE_CONT
,
pid
,
0
,
sig
);
ptrace
(
PTRACE_CONT
,
pid
,
1
,
sig
);
break
;
default:
/* ignore other signals for now */
ptrace
(
PTRACE_CONT
,
pid
,
0
,
sig
);
ptrace
(
PTRACE_CONT
,
pid
,
1
,
sig
);
break
;
}
if
(
signal
&&
sig
!=
signal
)
goto
restart
;
...
...
@@ -114,7 +114,7 @@ void detach_thread( struct thread *thread )
{
wait4_thread
(
thread
,
SIGTERM
);
if
(
debug_level
)
fprintf
(
stderr
,
"ptrace: detaching from %d
\n
"
,
thread
->
unix_pid
);
ptrace
(
PTRACE_DETACH
,
thread
->
unix_pid
,
0
,
SIGTERM
);
ptrace
(
PTRACE_DETACH
,
thread
->
unix_pid
,
1
,
SIGTERM
);
thread
->
attached
=
0
;
}
}
...
...
@@ -137,7 +137,7 @@ void continue_thread( struct thread *thread )
{
if
(
!
thread
->
unix_pid
)
return
;
if
(
!
thread
->
attached
)
kill
(
thread
->
unix_pid
,
SIGCONT
);
else
ptrace
(
PTRACE_CONT
,
thread
->
unix_pid
,
0
,
SIGSTOP
);
else
ptrace
(
PTRACE_CONT
,
thread
->
unix_pid
,
1
,
SIGSTOP
);
}
/* read an int from a thread address space */
...
...
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