signals: re-register SIGCHLD upon reload
authorAlexandre Cassen <acassen@freebox.fr>
Mon, 28 Sep 2009 16:59:54 +0000 (18:59 +0200)
committerAlexandre Cassen <acassen@freebox.fr>
Mon, 28 Sep 2009 16:59:54 +0000 (18:59 +0200)
commit2f98a8a900fae9fc8a549fb1fe87cb3338322d74
treeb91ba9399ab16e2675d33a2504e79eb7f8671670
parentb110c5eda0958b41b38d9159f0eb1f9e28fdb7fc
signals: re-register SIGCHLD upon reload

Vincent Bernat <bernat@luffy.cx> (and Willy) fixed SIGCHLD handler
re-registering issue.

thread_signal_handler is given as first parameter the master thread.
This thread is destroyed and reallocated on reload but the signal
handler was not recreated and therefore was still using the old master
thread. Usually, there is no change because master thread is
reallocated at the same place.
keepalived/check/check_daemon.c
keepalived/vrrp/vrrp_daemon.c