aboutsummaryrefslogtreecommitdiff
path: root/include/handler.h
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-09-15 02:07:05 +0000
committer_ov4 <ov4@ov4.org>2026-09-15 02:07:05 +0000
commit3980d30d28951edcc34d16758d549bc4d4ab193e (patch)
treee61209c44cf875e59598782c41c9d35083124bc2 /include/handler.h
parentaf69219a7229ccf524987123b2ecd70ff0456c9f (diff)
add safe_logger, and prepare for logical operators
Diffstat (limited to 'include/handler.h')
-rw-r--r--include/handler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/handler.h b/include/handler.h
index 100c548..8878eec 100644
--- a/include/handler.h
+++ b/include/handler.h
@@ -9,6 +9,7 @@
#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
+#include <atomic>
#include "all.h"
@@ -22,6 +23,8 @@ extern sigset_t
block_job,
block_io;
+inline std::atomic_int exit_code, exit_required_pid;
+
void signal_init();
handler_t *Signal(int signum, handler_t *handler);
void sigchld_handler(int sig);