z3 icon indicating copy to clipboard operation
z3 copied to clipboard

Fix SIGINT handler to use sigaction with SA_ONSTACK flag

Open NikolajBjorner opened this issue 6 months ago • 0 comments

Related to #7305

Update SIGINT signal handler to use sigaction with SA_ONSTACK flag.

  • Replace signal function with sigaction function in src/util/scoped_ctrl_c.cpp to register the SIGINT handler.
  • Set the SA_ONSTACK flag for the SIGINT signal handler in src/util/scoped_ctrl_c.cpp.
  • Update on_ctrl_c function to use sigaction in src/util/scoped_ctrl_c.cpp.
  • Modify scoped_ctrl_c struct in src/util/scoped_ctrl_c.h to include struct sigaction m_old_action instead of void (STD_CALL *m_old_handler)(int).

For more details, open the Copilot Workspace session.

NikolajBjorner avatar Jul 27 '24 06:07 NikolajBjorner