Ignore SIGINT in safe_atexit worker

This commit is contained in:
Kovid Goyal 2025-03-31 10:17:09 +05:30
parent 2c91a63c7a
commit dbdc0ecabd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -93,6 +93,9 @@ else:
def main(): def main():
if not iswindows:
import signal
signal.signal(signal.SIGINT, signal.SIG_IGN)
ac_map = {RMTREE_ACTION: remove_dir, UNLINK_ACTION: unlink} ac_map = {RMTREE_ACTION: remove_dir, UNLINK_ACTION: unlink}
for line in sys.stdin.buffer: for line in sys.stdin.buffer:
if line: if line: