[gnome-continuous-yocto/gnomeostree-3.28-rocko: 253/8267] bitbake: bin/bitbake-worker: Fix invalid bb.msg.fatal usage



commit 221705a03bb51448c325c1284bb40c4614ada06a
Author: Richard Purdie <richard purdie linuxfoundation org>
Date:   Wed May 11 22:57:10 2016 +0100

    bitbake: bin/bitbake-worker: Fix invalid bb.msg.fatal usage
    
    The logging domain specified to bb.msg.fatal was invalid. Replace with
    a logger.critical() call instead.
    
    (Bitbake rev: 1ffd8737e065a3cd634c74cd67e634d785ea93a5)
    
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 bitbake/bin/bitbake-worker |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker
index a4e8914..5fcffdd 100755
--- a/bitbake/bin/bitbake-worker
+++ b/bitbake/bin/bitbake-worker
@@ -159,7 +159,8 @@ 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))
+        sys.exit(1)
 
     if pid == 0:
         def child():


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]