mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-27 07:02:11 +00:00
bafbe01028
During the migration to the second version of the pools, the new functions and pool pointers were all called "pool_something2()" and "pool2_something". Now there's no more pool v1 code and it's a real pain to still have to deal with this. Let's clean this up now by removing the "2" everywhere, and by renaming the pool heads "pool_head_something".
48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
/*
|
|
* include/proto/signal.h
|
|
* Asynchronous signal delivery functions.
|
|
*
|
|
* Copyright 2000-2010 Willy Tarreau <w@1wt.eu>
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the License, or (at your option) any later version.
|
|
*
|
|
*/
|
|
|
|
#include <signal.h>
|
|
#include <common/standard.h>
|
|
#include <common/hathreads.h>
|
|
|
|
#include <types/signal.h>
|
|
#include <types/task.h>
|
|
|
|
extern int signal_queue_len;
|
|
extern struct signal_descriptor signal_state[];
|
|
extern struct pool_head *pool_head_sig_handlers;
|
|
|
|
__decl_hathreads(extern HA_SPINLOCK_T signals_lock);
|
|
|
|
void signal_handler(int sig);
|
|
void __signal_process_queue();
|
|
int signal_init();
|
|
void deinit_signals();
|
|
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);
|
|
void signal_unregister_handler(struct sig_handler *handler);
|
|
void signal_unregister_target(int sig, void *target);
|
|
|
|
static inline void signal_process_queue()
|
|
{
|
|
if (unlikely(signal_queue_len > 0))
|
|
__signal_process_queue();
|
|
}
|
|
|
|
/*
|
|
* Local variables:
|
|
* c-indent-level: 8
|
|
* c-basic-offset: 8
|
|
* End:
|
|
*/
|