Revert "Prevent removal unix socket for reuse_port"

This reverts commit af7f158d224c9925e3315ee216c07adc09c64b61.
This commit is contained in:
Konstantin Enchant 2018-10-01 14:29:25 +03:00
parent af7f158d22
commit df8290d153
No known key found for this signature in database
GPG Key ID: 45A2C19A91A96A3A

View File

@ -376,11 +376,7 @@ class Arbiter(object):
killed gracefully (ie. trying to wait for the current connection)
"""
unlink = (
self.reexec_pid == self.master_pid == 0
and not self.systemd
and not self.cfg.reuse_port
)
unlink = self.reexec_pid == self.master_pid == 0 and not self.systemd
sock.close_sockets(self.LISTENERS, unlink)
self.LISTENERS = []