start: Ignore Ctrl-C and let the child decides what to do with it.

Based on a patch from Bernhard Übelacker

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51766
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2021-12-15 16:52:46 +01:00 committed by Alexandre Julliard
parent d61c9998d9
commit ff7ff4d0b4
1 changed files with 1 additions and 0 deletions

View File

@ -676,6 +676,7 @@ done:
if (sei.fMask & SEE_MASK_NOCLOSEPROCESS) {
DWORD exitcode;
SetConsoleCtrlHandler(NULL, TRUE);
WaitForSingleObject(sei.hProcess, INFINITE);
GetExitCodeProcess(sei.hProcess, &exitcode);
ExitProcess(exitcode);