diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-12 03:16:12 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-11 20:18:53 -0700 |
commit | d1161cb4daf502d30983200652adbaa5b296b743 (patch) | |
tree | 0973d70ba8c0333f6512bd6dd7d998208e9eb65a | |
parent | e1d7a45bb662327e64d0624ab7eaba4d8947033a (diff) | |
download | poky-d1161cb4daf502d30983200652adbaa5b296b743.tar.gz |
bitbake: 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.
(Bitbake rev: a53c8d1f846d94082aa459996c4114f10970b8ef)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/bin/bitbake-worker | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker index c173dbe01d..68e2bf4571 100755 --- a/bitbake/bin/bitbake-worker +++ b/bitbake/bin/bitbake-worker | |||
@@ -132,6 +132,8 @@ def fork_off_task(cfg, data, workerdata, fn, task, taskname, appends, taskdepdat | |||
132 | global worker_pipe | 132 | global worker_pipe |
133 | pipein.close() | 133 | pipein.close() |
134 | 134 | ||
135 | signal.signal(signal.SIGTERM, signal.SIG_DFL) | ||
136 | |||
135 | # Save out the PID so that the event can include it the | 137 | # Save out the PID so that the event can include it the |
136 | # events | 138 | # events |
137 | bb.event.worker_pid = os.getpid() | 139 | bb.event.worker_pid = os.getpid() |