Remove SIGHUP handling in scheduler
This was deprecated in 3.3.0; remove it for 4.0. Change-Id: I75463f2c29f6399cba171386bd475a063fa01ef1
This commit is contained in:
@@ -66,11 +66,6 @@ class Scheduler(zuul.cmd.ZuulDaemonApp):
|
||||
except Exception:
|
||||
self.log.exception("Reconfiguration failed:")
|
||||
|
||||
def reconfigure_handler(self, signum, frame):
|
||||
signal.signal(signal.SIGHUP, signal.SIG_IGN)
|
||||
self.fullReconfigure()
|
||||
signal.signal(signal.SIGHUP, self.reconfigure_handler)
|
||||
|
||||
def exit_handler(self, signum, frame):
|
||||
self.sched.exit()
|
||||
self.sched.join()
|
||||
@@ -178,8 +173,6 @@ class Scheduler(zuul.cmd.ZuulDaemonApp):
|
||||
self.sched.stop()
|
||||
sys.exit(1)
|
||||
|
||||
signal.signal(signal.SIGHUP, self.reconfigure_handler)
|
||||
|
||||
if self.args.nodaemon:
|
||||
signal.signal(signal.SIGTERM, self.exit_handler)
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user