3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 08:35:31 +00:00
z3/src
Nikolaj Bjorner 62b530e945 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 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](https://copilot-workspace.githubnext.com/Z3Prover/z3/issues/7305?shareId=XXXX-XXXX-XXXX-XXXX).
2024-07-26 23:22:53 -07:00
..
ackermannization fix #6807 2023-07-13 10:23:28 -07:00
api kludge to address #7232, probably superseeded by planned revision to setup/pypi 2024-07-08 16:54:09 -07:00
ast add partial evaluation cases for algebraic data-types for recursive functions. 2024-06-16 16:07:16 -07:00
cmd_context remove macro distinction #7270 2024-07-08 13:56:34 -07:00
math remove unused column_info.h 2024-06-17 12:58:16 -07:00
model fix #7268 2024-07-08 14:50:38 -07:00
muz Fix some typos. (#7075) 2023-12-29 15:20:06 +00:00
nlsat trigger the build with a comment change 2024-07-08 11:43:24 -07:00
opt fix #7245 2024-06-15 02:29:32 -07:00
params updates to sls 2024-03-30 12:59:05 -07:00
parsers Fixed parsing of | and \ (#6975) 2023-10-30 12:30:23 -07:00
qe change signed projection to include root object. 2024-03-23 16:14:24 -04:00
sat remove wsp 2024-07-18 10:11:15 -07:00
shell before rm lu 2023-03-08 10:27:05 -08:00
smt #7207 2024-06-16 15:04:42 -07:00
solver spell check from https://github.com/microsoft/z3guide/pull/165 2024-01-12 09:57:46 -08:00
tactic maintain ownership of dependency 2024-04-10 17:57:14 -07:00
test remove crashing test 2024-07-22 08:43:22 -07:00
util Fix SIGINT handler to use sigaction with SA_ONSTACK flag 2024-07-26 23:22:53 -07:00
CMakeLists.txt move sls core functionality to be independent of tactic 2023-12-22 12:00:52 -08:00