aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-12 03:16:12 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-11 20:18:14 -0700
commita53c8d1f846d94082aa459996c4114f10970b8ef (patch)
tree0b783454029e8ed914478e87464f8d57f4c1a48b /bin
parent98b991287df06cd89955c1d0591fce3b5d4403d1 (diff)
downloadbitbake-a53c8d1f846d94082aa459996c4114f10970b8ef.tar.gz
bitbake-worker: Ensure children have default sigterm handler
The children of the worker should have the default SIGTERM handler, else they'll try and do cleanup which should only happen in the parent leading to all kinds of bizarre build failures. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake-worker2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/bitbake-worker b/bin/bitbake-worker
index c173dbe01..68e2bf457 100755
--- a/bin/bitbake-worker
+++ b/bin/bitbake-worker
@@ -132,6 +132,8 @@ def fork_off_task(cfg, data, workerdata, fn, task, taskname, appends, taskdepdat
global worker_pipe
pipein.close()
+ signal.signal(signal.SIGTERM, signal.SIG_DFL)
+
# Save out the PID so that the event can include it the
# events
bb.event.worker_pid = os.getpid()