NeoMutt  2022-04-29-215-gc12b98
Teaching an old dog new tricks
DOXYGEN
signal2.h
Go to the documentation of this file.
1
23#ifndef MUTT_LIB_SIGNAL2_H
24#define MUTT_LIB_SIGNAL2_H
25
26#include <stdbool.h>
27
35typedef void (*sig_handler_t)(int sig);
36
37void mutt_sig_allow_interrupt(bool allow);
38void mutt_sig_block(void);
39void mutt_sig_block_system(void);
40void mutt_sig_empty_handler(int sig);
41void mutt_sig_exit_handler(int sig);
42void mutt_sig_init(sig_handler_t sig_fn, sig_handler_t exit_fn, sig_handler_t segv_fn);
43void mutt_sig_unblock(void);
45
46#endif /* MUTT_LIB_SIGNAL2_H */
static struct Email * restore(const unsigned char *d)
Restore an Email from data retrieved from the cache.
Definition: hcache.c:143
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_empty_handler(int sig)
Dummy signal handler.
Definition: signal.c:57
void(* sig_handler_t)(int sig)
Definition: signal2.h:35
void mutt_sig_block_system(void)
Block signals before calling exec()
Definition: signal.c:183
void mutt_sig_block(void)
Block signals during critical operations.
Definition: signal.c:150
void mutt_sig_unblock(void)
Restore previously blocked signals.
Definition: signal.c:168
void mutt_sig_unblock_system(bool restore)
Restore previously blocked signals.
Definition: signal.c:207
void mutt_sig_allow_interrupt(bool allow)
Allow/disallow Ctrl-C (SIGINT)
Definition: signal.c:238
void mutt_sig_exit_handler(int sig)
Notify the user and shutdown gracefully.
Definition: signal.c:65