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
36b85d02
Commit
36b85d02
authored
Jun 29, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear the process handle table before releasing it to avoid potential
problems with destructors trying to access handles.
parent
8ba32b3f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
process.c
server/process.c
+3
-1
No files found.
server/process.c
View file @
36b85d02
...
@@ -602,12 +602,14 @@ void kill_console_processes( struct thread *renderer, int exit_code )
...
@@ -602,12 +602,14 @@ void kill_console_processes( struct thread *renderer, int exit_code )
/* a process has been killed (i.e. its last thread died) */
/* a process has been killed (i.e. its last thread died) */
static
void
process_killed
(
struct
process
*
process
)
static
void
process_killed
(
struct
process
*
process
)
{
{
struct
handle_table
*
handles
;
struct
list
*
ptr
;
struct
list
*
ptr
;
assert
(
list_empty
(
&
process
->
thread_list
));
assert
(
list_empty
(
&
process
->
thread_list
));
gettimeofday
(
&
process
->
end_time
,
NULL
);
gettimeofday
(
&
process
->
end_time
,
NULL
);
if
(
process
->
handles
)
release_object
(
process
->
handles
)
;
handles
=
process
->
handles
;
process
->
handles
=
NULL
;
process
->
handles
=
NULL
;
if
(
handles
)
release_object
(
handles
);
/* close the console attached to this process, if any */
/* close the console attached to this process, if any */
free_console
(
process
);
free_console
(
process
);
...
...
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