* [PATCH] oeqa/utils/httpserver: Reset SIGTERM handler
@ 2014-08-23 8:23 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2014-08-23 8:23 UTC (permalink / raw)
To: openembedded-core
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>
diff --git a/meta/lib/oeqa/utils/httpserver.py b/meta/lib/oeqa/utils/httpserver.py
index f161a1b..76518d8 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()
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-23 8:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-23 8:23 [PATCH] oeqa/utils/httpserver: Reset SIGTERM handler Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox