1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +00:00

wineserver: Report non-zero exit code for abnormal process termination.

Signed-off-by: Adam Rehn <adam@tensorworks.com.au>
This commit is contained in:
Adam Rehn 2023-09-20 21:00:30 +10:00 committed by Alexandre Julliard
parent bc0cd8052e
commit 2dfeb87f41

View File

@ -858,7 +858,7 @@ static void process_poll_event( struct fd *fd, int event )
struct process *process = get_fd_user( fd );
assert( process->obj.ops == &process_ops );
if (event & (POLLERR | POLLHUP)) kill_process( process, 0 );
if (event & (POLLERR | POLLHUP)) kill_process( process, !process->is_terminating );
else if (event & POLLIN) receive_fd( process );
}