The idea is that we handle Ctrl+C not by terminating the processes (which would reflect `kill -KILL`, not `kill -INT`) but by imitating what Windows does in a CMD window: we inject a remote thread that runs the `CtrlRoutine` function. This lets the `atexit()` handlers and the ConsoleCtrlEvent handlers do their job. This commit brings the goodness from https://github.com/msys2/msys2-runtime/pull/31 over into MSYS2-packages, which cherry-picked and edited the patches from Git for Windows. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
From d77a022baf5b1f6e8ce7f04ce294a60df1d13519 Mon Sep 17 00:00:00 2001
|
|
From: Corinna Vinschen <corinna@vinschen.de>
|
|
Date: Thu, 20 May 2021 10:03:34 +0200
|
|
Subject: [PATCH 38/N] Cygwin: Add missing IsWow64Process2 declaration
|
|
|
|
The previous patch is accidentally missing the declaration of
|
|
IsWow64Process2. Add it belatedly.
|
|
|
|
Fixes: 1865a41cb383 ("Cygwin: suppress FAST_CWD warnings on ARM64")
|
|
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
|
|
---
|
|
winsup/cygwin/winlean.h | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/winsup/cygwin/winlean.h b/winsup/cygwin/winlean.h
|
|
index 2e2308e..3382686 100644
|
|
--- a/winsup/cygwin/winlean.h
|
|
+++ b/winsup/cygwin/winlean.h
|
|
@@ -110,6 +110,9 @@ extern "C" {
|
|
executed on systems that support it (a run-time condition). */
|
|
PVOID WINAPI VirtualAlloc2 (HANDLE, PVOID, SIZE_T, ULONG, ULONG,
|
|
PMEM_EXTENDED_PARAMETER, ULONG);
|
|
+/* IsWow64Process2 should be declared in <w32api/wow64apiset.h> but
|
|
+ isn't yet. */
|
|
+BOOL WINAPI IsWow64Process2(HANDLE, USHORT *, USHORT *);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
--
|
|
2.31.1
|
|
|