diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-01 10:41:39 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-01 10:41:39 +0000 |
| commit | 6d9469d916bb80aa76c82097e60b725de1661d5c (patch) | |
| tree | 1c8d4f046c46d387914bc73fd912dd6eac950a0d /include/handler.h | |
| parent | 94c449ca42bd29de2c2fd137945550fe110fcd17 (diff) | |
real foreground/background
Diffstat (limited to 'include/handler.h')
| -rw-r--r-- | include/handler.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/handler.h b/include/handler.h index 225fc93..100c548 100644 --- a/include/handler.h +++ b/include/handler.h @@ -1,7 +1,5 @@ #pragma once -#include "global.h" - #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -12,20 +10,25 @@ #include <sys/wait.h> #include <errno.h> -#include "util/io.h" -#include "job.h" +#include "all.h" namespace ov4 { typedef void handler_t(int); +extern sigset_t + block_sig_TTOU, + block_job, + block_io; + void signal_init(); handler_t *Signal(int signum, handler_t *handler); void sigchld_handler(int sig); void sigint_handler(int sig); void sigtstp_handler(int sig); void sigquit_handler(int sig); + int block_all(sigset_t *prev); int block_handler(sigset_t *prev); |
