Module: wine Branch: master Commit: 2dfeb87f410a49dcf0a40d9f81315122b529fa06 URL: https://gitlab.winehq.org/wine/wine/-/commit/2dfeb87f410a49dcf0a40d9f8131512... Author: Adam Rehn <adam(a)tensorworks.com.au> Date: Wed Sep 20 21:00:30 2023 +1000 wineserver: Report non-zero exit code for abnormal process termination. Signed-off-by: Adam Rehn <adam(a)tensorworks.com.au> --- server/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/process.c b/server/process.c index 66f90fb80c4..155dc050d95 100644 --- a/server/process.c +++ b/server/process.c @@ -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 ); }