mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 06:32:13 +02:00
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>
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user