]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] ensure that we correctly re-start old process in case of error
authorWilly Tarreau <w@1wt.eu>
Tue, 9 Jun 2009 12:36:00 +0000 (14:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Jun 2009 12:36:00 +0000 (14:36 +0200)
commitf68da4603a092f35af627c459dbc714d9fa796e9
tree1512edabde9d8c5a8c2f247482da1361b4c13ab6
parent6bde87b7574df1b521633da35b0fa5dacc137d29
[BUG] ensure that we correctly re-start old process in case of error

When a new process fails to grab some ports, it sends a signal to
the old process in order to release them. Then it tries to bind
again. If it still fails (eg: one of the ports is bound to a
completely different process), it must send the continue signal
to the old process so that this one re-binds to the ports. This
is correctly done, but the newly bound ports are not released
first, which sometimes causes the old process to remain running
with no port bound. The fix simply consists in unbinding all
ports before sending the signal to the old process.
src/haproxy.c