| Description: |
Since [d69b5cecd5] (fix for [c2483bfe4b]), `TkpInit()` on macOS installs `TkMacOSXSignalHandler`, which calls `Tcl_Exit(1)`, for SIGINT, SIGHUP and SIGTERM. It does this unconditionally, so it also replaces handlers installed by the application which embeds Tk.
In Python, the SIGINT handler raises `KeyboardInterrupt`. Once a Tk window has been created, Ctrl-C (or SIGINT sent with `pthread_kill()`, which IDLE is going to use to interrupt user code) silently terminates the process with exit status 1 instead. Python-level SIGTERM and SIGHUP handlers stop working as well.
Branch mac-signal-handlers ([87fa518cee]) installs the Tk handler only if the previous disposition is `SIG_DFL`, so `wish` behaves as before.
|