diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-22 17:21:41 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-23 09:29:49 +0100 |
commit | e1ac67d6470dde70239ca0430b18ca0bffbc0295 (patch) | |
tree | bf11dcb5a8eebd8cba046fef7bb3535da935e74e /meta/lib/oeqa/utils | |
parent | a539e823d002fefe129e3045f893d1237fadb87f (diff) | |
download | openembedded-core-contrib-e1ac67d6470dde70239ca0430b18ca0bffbc0295.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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils')
-rw-r--r-- | meta/lib/oeqa/utils/httpserver.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/httpserver.py b/meta/lib/oeqa/utils/httpserver.py index f161a1bddd0..76518d8ef9e 100644 --- a/meta/lib/oeqa/utils/httpserver.py +++ b/meta/lib/oeqa/utils/httpserver.py @@ -5,6 +5,8 @@ import os class HTTPServer(SimpleHTTPServer.BaseHTTPServer.HTTPServer): def server_start(self, root_dir): + import signal + signal.signal(signal.SIGTERM, signal.SIG_DFL) os.chdir(root_dir) self.serve_forever() |