NeoMutt  2020-11-20
Teaching an old dog new tricks
DOXYGEN
signal2.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_LIB_SIGNAL_H
24 #define MUTT_LIB_SIGNAL_H
25 
26 #include <stdbool.h>
27 
32 typedef void (*sig_handler_t)(int sig);
33 
34 void mutt_sig_allow_interrupt(bool allow);
35 void mutt_sig_block(void);
36 void mutt_sig_block_system(void);
37 void mutt_sig_empty_handler(int sig);
38 void mutt_sig_exit_handler(int sig);
39 void mutt_sig_init(sig_handler_t sig_fn, sig_handler_t exit_fn, sig_handler_t segv_fn);
40 void mutt_sig_unblock(void);
42 
43 #endif /* MUTT_LIB_SIGNAL_H */
void mutt_sig_exit_handler(int sig)
Notify the user and shutdown gracefully.
Definition: signal.c:65
void mutt_sig_allow_interrupt(bool allow)
Allow/disallow Ctrl-C (SIGINT)
Definition: signal.c:238
void mutt_sig_empty_handler(int sig)
Dummy signal handler.
Definition: signal.c:57
void mutt_sig_block(void)
Block signals during critical operations.
Definition: signal.c:150
void mutt_sig_block_system(void)
Block signals before calling exec()
Definition: signal.c:183
void(* sig_handler_t)(int sig)
Handler for signals.
Definition: signal2.h:32
void mutt_sig_init(sig_handler_t sig_fn, sig_handler_t exit_fn, sig_handler_t segv_fn)
Initialise the signal handling.
Definition: signal.c:88
void mutt_sig_unblock(void)
Restore previously blocked signals.
Definition: signal.c:168
static struct Email * restore(const unsigned char *d)
Restore an Email from data retrieved from the cache.
Definition: hcache.c:145
void mutt_sig_unblock_system(bool restore)
Restore previously blocked signals.
Definition: signal.c:207