bitbake/knotty: ensure we return non-zero exit code on Ctrl+C

If the user uses Ctrl+C to exit out of the build, then ensure we return
a non-zero exit code since the entire build was not completed
successfully.

If nothing else, this is useful to avoid continuing in the bitbake
wrapper script in OE-Core if the initial pseudo build is interrupted.

(Bitbake rev: c11eab7fa230f1fd5cc33589f3555b94e95f202d)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton 2012-02-13 11:41:32 +00:00 committed by Richard Purdie
parent 5210cc40db
commit b62249f3db
1 changed files with 5 additions and 0 deletions

View File

@ -295,4 +295,9 @@ def main(server, eventHandler):
if summary:
print(summary)
if shutdown:
print("Execution was interrupted, returning a non-zero exit code.")
if return_value == 0:
return_value = 1
return return_value