z3
z3 copied to clipboard
Fix SIGINT handler to use sigaction with SA_ONSTACK flag
Related to #7305
Update SIGINT signal handler to use sigaction
with SA_ONSTACK
flag.
- Replace
signal
function withsigaction
function insrc/util/scoped_ctrl_c.cpp
to register the SIGINT handler. - Set the
SA_ONSTACK
flag for the SIGINT signal handler insrc/util/scoped_ctrl_c.cpp
. - Update
on_ctrl_c
function to usesigaction
insrc/util/scoped_ctrl_c.cpp
. - Modify
scoped_ctrl_c
struct insrc/util/scoped_ctrl_c.h
to includestruct sigaction m_old_action
instead ofvoid (STD_CALL *m_old_handler)(int)
.
For more details, open the Copilot Workspace session.