mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
MINOR: peers: store the pointer to the signal handler
We'll need it to unregister stopped peers sections.
This commit is contained in:
parent
77e4bd1497
commit
aa729784e1
@ -57,6 +57,7 @@ struct peer_session {
|
||||
struct shared_table {
|
||||
struct stktable *table; /* stick table to sync */
|
||||
struct task *sync_task; /* main sync task */
|
||||
struct sig_handler *sighandler; /* signal handler */
|
||||
struct peer_session *local_session; /* local peer session */
|
||||
struct peer_session *sessions; /* peer sessions list */
|
||||
unsigned int flags; /* current table resync state */
|
||||
|
||||
@ -1393,8 +1393,8 @@ void peers_register_table(struct peers *peers, struct stktable *table)
|
||||
st->sync_task->process = process_peer_sync;
|
||||
st->sync_task->expire = TICK_ETERNITY;
|
||||
st->sync_task->context = (void *)st;
|
||||
table->sync_task =st->sync_task;
|
||||
signal_register_task(0, table->sync_task, 0);
|
||||
table->sync_task = st->sync_task;
|
||||
st->sighandler = signal_register_task(0, table->sync_task, 0);
|
||||
task_wakeup(st->sync_task, TASK_WOKEN_INIT);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user