diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-13 03:59:41 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-13 03:59:41 +0200 |
commit | 349846cd411f0c6d45237c5794f9694cb6030489 (patch) | |
tree | 85e2247cc4dc7cbbfb3465a61385d5f484005a7e /src/signal.h | |
parent | server: handle disconnected workers gracefully (diff) | |
download | cimple-349846cd411f0c6d45237c5794f9694cb6030489.tar.gz cimple-349846cd411f0c6d45237c5794f9694cb6030489.zip |
signal: remove the stupid add_to_event_loop wrapper
Diffstat (limited to '')
-rw-r--r-- | src/signal.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/signal.h b/src/signal.h index b049c3f..e48eff2 100644 --- a/src/signal.h +++ b/src/signal.h @@ -8,8 +8,6 @@ #ifndef __SIGNAL_H__ #define __SIGNAL_H__ -#include "event_loop.h" - #include <signal.h> int signal_set_mask(const sigset_t *new); @@ -18,10 +16,7 @@ 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_create_sigterms(void); +void signalfd_destroy(int fd); #endif |