Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
15ed9616
Commit
15ed9616
authored
Nov 10, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't crash when we get a SIGCHLD for a removed thread.
parent
f11d29e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
thread.c
server/thread.c
+6
-3
No files found.
server/thread.c
View file @
15ed9616
...
...
@@ -256,7 +256,8 @@ void wait4_thread( struct thread *thread, int signal )
switch
(
sig
)
{
case
SIGSTOP
:
/* continue at once if not suspended */
if
(
!
thread
)
thread
=
get_thread_from_pid
(
pid
);
if
(
!
thread
)
if
(
!
(
thread
=
get_thread_from_pid
(
pid
)))
break
;
if
(
!
(
thread
->
process
->
suspend
+
thread
->
suspend
))
ptrace
(
PTRACE_CONT
,
pid
,
0
,
sig
);
break
;
...
...
@@ -271,7 +272,8 @@ void wait4_thread( struct thread *thread, int signal )
int
exit_code
=
WTERMSIG
(
status
);
if
(
debug_level
)
fprintf
(
stderr
,
"ptrace: pid %d killed by sig %d
\n
"
,
pid
,
exit_code
);
if
(
!
thread
)
thread
=
get_thread_from_pid
(
pid
);
if
(
!
thread
)
if
(
!
(
thread
=
get_thread_from_pid
(
pid
)))
return
;
if
(
thread
->
client
)
remove_client
(
thread
->
client
,
exit_code
);
}
else
if
(
WIFEXITED
(
status
))
...
...
@@ -279,7 +281,8 @@ void wait4_thread( struct thread *thread, int signal )
int
exit_code
=
WEXITSTATUS
(
status
);
if
(
debug_level
)
fprintf
(
stderr
,
"ptrace: pid %d exited with status %d
\n
"
,
pid
,
exit_code
);
if
(
!
thread
)
thread
=
get_thread_from_pid
(
pid
);
if
(
!
thread
)
if
(
!
(
thread
=
get_thread_from_pid
(
pid
)))
return
;
if
(
thread
->
client
)
remove_client
(
thread
->
client
,
exit_code
);
}
else
fprintf
(
stderr
,
"wait4: pid %d unknown status %x
\n
"
,
pid
,
status
);
...
...
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