[bitbake-devel] [PATCH] bin/bitbake-worker: Fix invalid bb.msg.fatal usage

Richard Purdie richard.purdie at linuxfoundation.org
Wed May 11 21:57:10 UTC 2016


The logging domain specified to bb.msg.fatal was invalid. Replace with
a logger.critical() call instead.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker
index a4e8914..eb80306 100755
--- a/bitbake/bin/bitbake-worker
+++ b/bitbake/bin/bitbake-worker
@@ -159,7 +159,7 @@ def fork_off_task(cfg, data, workerdata, fn, task, taskname, appends, taskdepdat
         pipeout = os.fdopen(pipeout, 'wb', 0)
         pid = os.fork()
     except OSError as e:
-        bb.msg.fatal("RunQueue", "fork failed: %d (%s)" % (e.errno, e.strerror))
+        logger.critical("fork failed: %d (%s)" % (e.errno, e.strerror))
 
     if pid == 0:
         def child():





More information about the bitbake-devel mailing list