BUG/MINOR: reload: do not fail when no socket is sent
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 16:45:01 +0000 (18:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 16:45:01 +0000 (18:45 +0200)
commitfebbce87baf15b610d30172e37b98133e92159cc
treef02af5022ff055f2747c24048b3ff047a4286025
parentc32f39431cdba2ca2f63b1debcfbfec2ee30f7d5
BUG/MINOR: reload: do not fail when no socket is sent

get_old_sockets() mistakenly sets ret=0 instead of ret2=0 before leaving
when the old process announces zero FD. So it will return an error
instead of success. This must be particularly rare not to have a
single socket to offer though!

A few comments were added to make it more obvious what to expect in
return.

This must be backported to 1.8 since the bug has always been there.
src/haproxy.c