diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-11 22:57:10 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-13 13:41:32 +0100 |
commit | 221705a03bb51448c325c1284bb40c4614ada06a (patch) | |
tree | 04c11698e9f14b5cfe09710fd997b6c4c6bab1da /bitbake/bin | |
parent | df1546952bf13ba9fb811daf1472caadfa03eb38 (diff) | |
download | poky-221705a03bb51448c325c1284bb40c4614ada06a.tar.gz |
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>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | 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 a4e8914eec..5fcffddd4d 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 | |||
159 | pipeout = os.fdopen(pipeout, 'wb', 0) | 159 | pipeout = os.fdopen(pipeout, 'wb', 0) |
160 | pid = os.fork() | 160 | pid = os.fork() |
161 | except OSError as e: | 161 | except OSError as e: |
162 | bb.msg.fatal("RunQueue", "fork failed: %d (%s)" % (e.errno, e.strerror)) | 162 | logger.critical("fork failed: %d (%s)" % (e.errno, e.strerror)) |
163 | sys.exit(1) | ||
163 | 164 | ||
164 | if pid == 0: | 165 | if pid == 0: |
165 | def child(): | 166 | def child(): |