Merge "Fix error handling for pidfile" into feature/zuulv3

This commit is contained in:
Zuul 2018-01-10 00:02:14 +00:00 committed by Gerrit Code Review
commit 452ca6bbb6
1 changed files with 2 additions and 1 deletions

View File

@ -181,8 +181,9 @@ class ZuulDaemonApp(ZuulApp):
else: else:
# Exercise the pidfile before we do anything else (including # Exercise the pidfile before we do anything else (including
# logging or daemonizing) # logging or daemonizing)
with daemon.DaemonContext(pidfile=pid): with pid:
pass pass
with daemon.DaemonContext(pidfile=pid): with daemon.DaemonContext(pidfile=pid):
self.run() self.run()