24#define TIMEOUT_DEFAULT 0
31extern int timeout_value;
38extern bool timeout_flag;
45#define LIMIT_DEFAULT 1000000
52extern unsigned int limit_value;
58extern bool limit_flag;
66extern bool interrupt_flag;
Macros for displaying error messages.
void ignore_interrupt(void)
Ignores the interrupt signal.
Definition interrupt.c:36
void ignore_timeout(void)
Ignores the timeout signal.
Definition interrupt.c:9
void handler(int signum)
The interrupt handler.
Definition interrupt.c:57
void normal_mode(void)
Ignores all signals and cancel pending alarm, if any.
Definition interrupt.c:83
void listen_interrupt(void)
Listens to the interrupt signal.
Definition interrupt.c:45
void listen_timeout(int value)
Sets an alarm and listens to the SIGALRM signal.
Definition interrupt.c:21
void listening_mode(int value)
Listens to all signals (SIGINT and SIGALRM).
Definition interrupt.c:78