summaryrefslogtreecommitdiff
path: root/zuul/cmd/web.py
diff options
context:
space:
mode:
authorTobias Henkel <tobias.henkel@bmw.de>2017-12-27 10:31:40 +0100
committerTobias Henkel <tobias.henkel@bmw.de>2017-12-27 10:45:36 +0100
commit00d7ea51fd1633a141b2e97291baa425be1680c8 (patch)
tree98b3ccb95cfe89055a0b7289d181972c0bbfe284 /zuul/cmd/web.py
parent379523bd09e4bbd9f475d316cddea0cb154a906b (diff)
downloadzuul-00d7ea51fd1633a141b2e97291baa425be1680c8.tar.gz
Register term_handler for all zuul apps
Almost all zuul apps use the method term_handler for SIGINT and SIGTERM. Defining this centrally in ZuulDaemonApp makes this much simpler and without repitition. Change-Id: I68f8d1bf52b0e16340818d2bcc44cd9fc5868ca7
Diffstat (limited to 'zuul/cmd/web.py')
-rwxr-xr-xzuul/cmd/web.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/zuul/cmd/web.py b/zuul/cmd/web.py
index ad3062ff0..78392db51 100755
--- a/zuul/cmd/web.py
+++ b/zuul/cmd/web.py
@@ -89,12 +89,6 @@ class WebServer(zuul.cmd.ZuulDaemonApp):
name='web')
self.thread.start()
- try:
- signal.pause()
- except KeyboardInterrupt:
- print("Ctrl + C: asking web server to exit nicely...\n")
- self.exit_handler(signal.SIGINT, None)
-
self.thread.join()
loop.stop()
loop.close()