From: Richard Purdie Date: Wed, 12 Mar 2014 03:16:12 +0000 (+0000) Subject: bitbake-worker: Ensure children have default sigterm handler X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a53c8d1f846d94082aa459996c4114f10970b8ef;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/bin/bitbake-worker b/bin/bitbake-worker index c173dbe01d4..68e2bf45718 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()