diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-05 10:21:43 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-05 10:21:43 +0000 |
| commit | c0dc27b0e94d8aca60fc47c9dee09eb170cb79dd (patch) | |
| tree | bfd7bde12746fb871a6437d90821dfd02707dae6 /include/handler.h | |
| parent | 6d852035446ff5db6d5d5c0cd1dacf84db1a3709 (diff) | |
add exit_code for process signal'd
Diffstat (limited to 'include/handler.h')
| -rw-r--r-- | include/handler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/handler.h b/include/handler.h index 8878eec..71db1b9 100644 --- a/include/handler.h +++ b/include/handler.h @@ -25,6 +25,8 @@ extern sigset_t inline std::atomic_int exit_code, exit_required_pid; +inline constexpr int SIGNAL_EXIT_CODE_BASE = 128; + void signal_init(); handler_t *Signal(int signum, handler_t *handler); void sigchld_handler(int sig); |
