summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-11 22:57:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-12 08:21:12 +0100
commit1ffd8737e065a3cd634c74cd67e634d785ea93a5 (patch)
treeb432ef37b688c8ccbc2b733c069351ddce2b9419 /bin
parent322949c77dbaa4db01b5a43d85b39a2af67ba7b2 (diff)
downloadbitbake-contrib-1ffd8737e065a3cd634c74cd67e634d785ea93a5.tar.gz
bitbake-contrib-1ffd8737e065a3cd634c74cd67e634d785ea93a5.tar.bz2
bitbake-contrib-1ffd8737e065a3cd634c74cd67e634d785ea93a5.zip
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake-worker3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/bitbake-worker b/bin/bitbake-worker
index a4e8914eec..5fcffddd4d 100755
--- a/bin/bitbake-worker
+++ b/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():