arbiter: reopen log files first then signal workers

Workers may run under different uid/gid and don't have permission
to create log files. After master opens log files and makes them
rw-able when default umask is used, workers will be able to open
them upon receiving USR1.
This commit is contained in:
root 2014-09-04 15:35:40 -07:00
parent 76ab68739e
commit f7151821c6

View File

@ -256,8 +256,8 @@ class Arbiter(object):
SIGUSR1 handling.
Kill all workers by sending them a SIGUSR1
"""
self.kill_workers(signal.SIGUSR1)
self.log.reopen_files()
self.kill_workers(signal.SIGUSR1)
def handle_usr2(self):
"""\