blob: 273482744c7cb14923896056157abcb6cddb70ba [file] [log] [blame]
Willy Tarreau8f38bd02009-05-10 08:53:33 +02001/*
2 * Asynchronous signal delivery functions.
3 *
4 * Copyright 2000-2009 Willy Tarreau <w@1wt.eu>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
10 *
11 */
12
13#include <signal.h>
14#include <common/standard.h>
15#include <types/signal.h>
16
17extern int signal_queue_len;
18extern struct signal_descriptor signal_state[];
19
20void signal_init();
21void signal_handler(int sig);
22void signal_register(int sig, void (*handler)(int));
23void __signal_process_queue();
24
25static inline void signal_process_queue()
26{
27 if (unlikely(signal_queue_len > 0))
28 __signal_process_queue();
29}