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
ff732506
Commit
ff732506
authored
Jun 22, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unlock the master socket if the boot thread terminates early.
Avoid crash if thread died during timeout wakeup.
parent
8da26fb2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
thread.c
server/thread.c
+7
-1
No files found.
server/thread.c
View file @
ff732506
...
...
@@ -211,6 +211,12 @@ static void cleanup_thread( struct thread *thread )
thread
->
request_fd
=
-
1
;
thread
->
reply_fd
=
-
1
;
thread
->
wait_fd
=
-
1
;
if
(
thread
==
booting_thread
)
/* killing booting thread */
{
booting_thread
=
NULL
;
lock_master_socket
(
0
);
}
}
/* destroy a thread when its refcount is 0 */
...
...
@@ -479,7 +485,7 @@ static void thread_timeout( void *ptr )
if
(
debug_level
)
fprintf
(
stderr
,
"%08x: *wakeup* signaled=%d cookie=%p
\n
"
,
(
unsigned
int
)
thread
,
STATUS_TIMEOUT
,
cookie
);
end_wait
(
thread
);
send_thread_wakeup
(
thread
,
cookie
,
STATUS_TIMEOUT
)
;
if
(
send_thread_wakeup
(
thread
,
cookie
,
STATUS_TIMEOUT
)
==
-
1
)
return
;
/* check if other objects have become signaled in the meantime */
wake_thread
(
thread
);
}
...
...
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