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
de1990f4
Commit
de1990f4
authored
Aug 21, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cope with wait4 being interrupted by a signal.
parent
aee989a7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ptrace.c
server/ptrace.c
+4
-2
No files found.
server/ptrace.c
View file @
de1990f4
...
...
@@ -139,10 +139,11 @@ static int wait4_thread( struct thread *thread, int signal )
{
int
res
,
status
;
do
for
(;;)
{
if
((
res
=
wait4_wrapper
(
get_ptrace_pid
(
thread
),
&
status
,
WUNTRACED
,
NULL
))
==
-
1
)
{
if
(
errno
==
EINTR
)
continue
;
if
(
errno
==
ECHILD
)
/* must have died */
{
thread
->
unix_pid
=
-
1
;
...
...
@@ -153,7 +154,8 @@ static int wait4_thread( struct thread *thread, int signal )
return
0
;
}
res
=
handle_child_status
(
thread
,
res
,
status
,
signal
);
}
while
(
res
&&
res
!=
signal
);
if
(
!
res
||
res
==
signal
)
break
;
}
return
(
thread
->
unix_pid
!=
-
1
);
}
...
...
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