aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/signal.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-13 02:16:28 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-13 02:24:02 +0200
commitb6564992c1c85d3d36edf9b6ec397fa40c36d7ce (patch)
treeb34a048a2343bb8b82d1f1a4e510cec340838af8 /src/signal.h
parentsanitize #include-s (diff)
downloadcimple-b6564992c1c85d3d36edf9b6ec397fa40c36d7ce.tar.gz
cimple-b6564992c1c85d3d36edf9b6ec397fa40c36d7ce.zip
signal: refactoring
Diffstat (limited to 'src/signal.h')
-rw-r--r--src/signal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/signal.h b/src/signal.h
index 0dda6ee..b049c3f 100644
--- a/src/signal.h
+++ b/src/signal.h
@@ -12,16 +12,16 @@
#include <signal.h>
-int signal_block_all(sigset_t *old);
-int signal_block_stops(void);
+int signal_set_mask(const sigset_t *new);
-int signal_restore(const sigset_t *new);
+int signal_block_all(sigset_t *old);
+int signal_block_sigterms(void);
int signalfd_create(const sigset_t *);
void signalfd_destroy(int fd);
int signalfd_add_to_event_loop(int fd, struct event_loop *, event_handler handler, void *arg);
-int signalfd_listen_for_stops(void);
+int signalfd_create_sigterms(void);
#endif