summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils/httpserver.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-22 17:21:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-23 09:31:41 +0100
commitf4786027baf410ae6d8c513826c633602fee4ec2 (patch)
tree4107fa4795cb8ef55a845722691c265971bdf26c /meta/lib/oeqa/utils/httpserver.py
parent181bcbe2c74abb220c08888ba5a8d3dbd6fbe155 (diff)
downloadpoky-f4786027baf410ae6d8c513826c633602fee4ec2.tar.gz
oeqa/utils/httpserver: Reset SIGTERM handler
With bitbake-worker installing a SIGTERM handler, we now need to reset the one here to ensure that when this process shuts down, it doesn't take the rest of the task with it. This does appear to be the only place in OE that we have this problem. (From OE-Core rev: e1ac67d6470dde70239ca0430b18ca0bffbc0295) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils/httpserver.py')
-rw-r--r--meta/lib/oeqa/utils/httpserver.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/httpserver.py b/meta/lib/oeqa/utils/httpserver.py
index f161a1bddd..76518d8ef9 100644
--- a/meta/lib/oeqa/utils/httpserver.py
+++ b/meta/lib/oeqa/utils/httpserver.py
@@ -5,6 +5,8 @@ import os
5class HTTPServer(SimpleHTTPServer.BaseHTTPServer.HTTPServer): 5class HTTPServer(SimpleHTTPServer.BaseHTTPServer.HTTPServer):
6 6
7 def server_start(self, root_dir): 7 def server_start(self, root_dir):
8 import signal
9 signal.signal(signal.SIGTERM, signal.SIG_DFL)
8 os.chdir(root_dir) 10 os.chdir(root_dir)
9 self.serve_forever() 11 self.serve_forever()
10 12