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
714156d7
Commit
714156d7
authored
Aug 13, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed race condition when a thread gets killed right after starting.
parent
6b97f5ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
client.c
scheduler/client.c
+1
-1
request.c
server/request.c
+1
-1
No files found.
scheduler/client.c
View file @
714156d7
...
...
@@ -680,6 +680,7 @@ void CLIENT_InitThread(void)
wine_server_send_fd
(
reply_pipe
[
1
]
);
wine_server_send_fd
(
teb
->
wait_fd
[
1
]
);
teb
->
reply_fd
=
reply_pipe
[
0
];
close
(
reply_pipe
[
1
]
);
/* set close on exec flag */
fcntl
(
teb
->
reply_fd
,
F_SETFD
,
1
);
...
...
@@ -699,7 +700,6 @@ void CLIENT_InitThread(void)
version
=
reply
->
version
;
if
(
reply
->
boot
)
boot_thread_id
=
teb
->
tid
;
else
if
(
boot_thread_id
==
teb
->
tid
)
boot_thread_id
=
0
;
close
(
reply_pipe
[
1
]
);
}
SERVER_END_REQ
;
...
...
server/request.c
View file @
714156d7
...
...
@@ -341,7 +341,7 @@ int receive_fd( struct process *process )
if
(
data
.
tid
)
thread
=
get_thread_from_id
(
data
.
tid
);
else
thread
=
(
struct
thread
*
)
grab_object
(
process
->
thread_list
);
if
(
!
thread
||
thread
->
process
!=
process
)
if
(
!
thread
||
thread
->
process
!=
process
||
thread
->
state
==
TERMINATED
)
{
if
(
debug_level
)
fprintf
(
stderr
,
"%08x: *fd* %d <- %d bad thread id
\n
"
,
...
...
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