May 15, 2025
6:43 p.m.
Piotr Caban (@piotr) commented about dlls/msv1_0/unixlib.c:
posix_spawn_file_actions_addclose( &file_actions, pipe_in[0] ); posix_spawn_file_actions_addclose( &file_actions, pipe_in[1] );
- if (posix_spawnp( &ctx->pid, params->argv[0], &file_actions, NULL, params->argv, environ )) + if ((err = posix_spawnp( &ctx->pid, params->argv[0], &file_actions, NULL, params->argv, environ ))) { ctx->pid = -1; write( pipe_in[1], "BH\n", 3 );
How about closing pipes on unsuccessful spawn? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7952#note_102339