We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fed80e commit 044eec8Copy full SHA for 044eec8
1 file changed
src/ezmsg/core/backend.py
@@ -464,7 +464,15 @@ def _shutdown_was_unclean(self) -> bool:
464
def _exit_with_sigint(self) -> None:
465
code = 0xC000013A if os.name == "nt" else 130
466
if os.name == "nt":
467
- os._exit(code)
+ try:
468
+ import ctypes
469
+ except Exception:
470
+ os._exit(1)
471
472
+ ctypes.windll.kernel32.ExitProcess(ctypes.c_uint(code).value)
473
474
+ os._exit(ctypes.c_int32(code).value)
475
+ return
476
477
prev_handler = None
478
try:
0 commit comments