summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/knotty.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/knotty.py')
-rw-r--r--bitbake/lib/bb/ui/knotty.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 746dcf462a..bb6d4cbbec 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -508,6 +508,10 @@ def main(server, eventHandler, params, tf = TerminalFilter):
508 # ignore interrupted io 508 # ignore interrupted io
509 if ioerror.args[0] == 4: 509 if ioerror.args[0] == 4:
510 pass 510 pass
511 sys.stderr.write(str(ioerror))
512 if not params.observe_only:
513 _, error = server.runCommand(["stateForceShutdown"])
514 main.shutdown = 2
511 except KeyboardInterrupt: 515 except KeyboardInterrupt:
512 termfilter.clearFooter() 516 termfilter.clearFooter()
513 if params.observe_only: 517 if params.observe_only:
@@ -526,7 +530,11 @@ def main(server, eventHandler, params, tf = TerminalFilter):
526 logger.error("Unable to cleanly shutdown: %s" % error) 530 logger.error("Unable to cleanly shutdown: %s" % error)
527 main.shutdown = main.shutdown + 1 531 main.shutdown = main.shutdown + 1
528 pass 532 pass
529 533 except Exception as e:
534 sys.stderr.write(str(e))
535 if not params.observe_only:
536 _, error = server.runCommand(["stateForceShutdown"])
537 main.shutdown = 2
530 summary = "" 538 summary = ""
531 if taskfailures: 539 if taskfailures:
532 summary += pluralise("\nSummary: %s task failed:", 540 summary += pluralise("\nSummary: %s task failed:",