]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: listener: set the listener's fd to -1 after deletion
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Jul 2014 16:24:48 +0000 (18:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 7 Jul 2014 23:13:34 +0000 (01:13 +0200)
commit39447b6a5799a160eae452db920fd0735a78638b
tree10dd00f5b69699e7a12611b1d329294028d30a9f
parent506c69a50e8d434b6b0c2c89b0402f220830644d
BUG/MINOR: listener: set the listener's fd to -1 after deletion

This is currently harmless, but when stopping a listener, its fd is
closed but not set to -1, so it is not possible to re-open it again.
Currently this has no impact but can have after the abstract sockets
are modified to perform a complete close on soft-reload.

The fix can be backported to 1.5 and may even apply to 1.4 (protocols.c).
src/listener.c