MEDIUM: uxst: make use of sock_unix_bind_receiver()
authorWilly Tarreau <w@1wt.eu>
Wed, 2 Sep 2020 15:21:02 +0000 (17:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 20:08:07 +0000 (22:08 +0200)
commitcd5e5eaf501afb6d6550435b077da773c0e37cc6
treedafb0b34783387bb3937bdadff0ff4e0a6218c92
parent1e0a8600997f79f9eb3224c566ef277f839bf21a
MEDIUM: uxst: make use of sock_unix_bind_receiver()

This removes all the AF_UNIX-specific code from uxst_bind_listener()
and now simply relies on sock_unix_bind_listener() to do the same
job. As mentionned in previous commit, the only difference is that
now an unlikely failure on listen() will not result in a roll back
of the temporary socket names since they will have been renamed
during the bind() operation (as expected). But such failures do not
correspond to any normal case and mostly denote operating system
issues so there's no functionality loss here.
src/proto_uxst.c