[MEDIUM] signals: add support for registering functions and tasks
authorWilly Tarreau <w@1wt.eu>
Fri, 27 Aug 2010 15:56:48 +0000 (17:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 Aug 2010 16:00:40 +0000 (18:00 +0200)
commit24f4efa670c527aba819f1188b02af3d51091858
tree503194a3d44ab87777d1c5c494f412ea941a8782
parent08c4b79f9a0cda4d29470d40b4f2c0458d9b08c2
[MEDIUM] signals: add support for registering functions and tasks

The two new functions below make it possible to register any number
of functions or tasks to a system signal. They will be called in the
registration order when the signal is received.

    struct sig_handler *signal_register_fct(int sig, void (*fct)(struct sig_handler *), int arg);
    struct sig_handler *signal_register_task(int sig, struct task *task, int reason);
include/proto/signal.h
include/proto/task.h
include/types/signal.h
include/types/task.h
src/haproxy.c
src/signal.c