[oe-commits] Richard Purdie : oeqa/utils/httpserver: Reset SIGTERM handler

git at git.openembedded.org git at git.openembedded.org
Fri Aug 22 17:35:30 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 86bcbfea68621d17aa5e8a91ea645f5e61d1513a
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=86bcbfea68621d17aa5e8a91ea645f5e61d1513a

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Fri Aug 22 17:21:41 2014 +0000

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 at linuxfoundation.org>

---

 meta/lib/oeqa/utils/httpserver.py | 2 ++
 1 file changed, 2 insertions(+)

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()
 



More information about the Openembedded-commits mailing list