]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: bitbake-worker: Ensure children have default sigterm handler
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Mar 2014 03:16:12 +0000 (03:16 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Mar 2014 03:18:53 +0000 (20:18 -0700)
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>
bitbake/bin/bitbake-worker

index c173dbe01d4fbe89daece5ea4388fcba44571eb8..68e2bf45718d28f7e82a461609fe0b8f2f2bbed4 100755 (executable)
@@ -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()