server: Cancel asyncs before closing handles when a process is destroyed.
test_exit_process_async() essentially validates this. The only reason it currently succeeds (instead of incorrectly returning ERROR_BROKEN_PIPE) is that due to the use of DuplicateHandle() the source handle is never actually closed. Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8b934f03d4
commit
e69d5b9f46
|
@ -842,8 +842,8 @@ static void process_killed( struct process *process )
|
|||
if (!process->is_system) close_process_desktop( process );
|
||||
process->winstation = 0;
|
||||
process->desktop = 0;
|
||||
close_process_handles( process );
|
||||
cancel_process_asyncs( process );
|
||||
close_process_handles( process );
|
||||
if (process->idle_event) release_object( process->idle_event );
|
||||
process->idle_event = NULL;
|
||||
assert( !process->console );
|
||||
|
|
Loading…
Reference in New Issue