You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(pty_terminal): use signal_hook instead of ctrlc for musl compat
ctrlc::set_handler spawns a background thread to monitor signals.
The subprocess closure runs during .init_array (via ctor), and on musl,
newly-created threads cannot execute during init because musl holds a
lock. This causes ctrlc's monitoring thread to never run, silently
swallowing SIGINT and causing send_ctrl_c_interrupts_process to hang.
Replace ctrlc with signal_hook::low_level::register on Unix, which
installs a raw signal handler without spawning threads.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments