diff options
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index c1ee9f5269..3dada8eac6 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -31,6 +31,7 @@ import time | |||
31 | import fcntl | 31 | import fcntl |
32 | import struct | 32 | import struct |
33 | import copy | 33 | import copy |
34 | import atexit | ||
34 | from bb.ui import uihelper | 35 | from bb.ui import uihelper |
35 | 36 | ||
36 | logger = logging.getLogger("BitBake") | 37 | logger = logging.getLogger("BitBake") |
@@ -303,6 +304,7 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
303 | taskfailures = [] | 304 | taskfailures = [] |
304 | 305 | ||
305 | termfilter = tf(main, helper, console, format) | 306 | termfilter = tf(main, helper, console, format) |
307 | atexit.register(termfilter.finish) | ||
306 | 308 | ||
307 | while True: | 309 | while True: |
308 | try: | 310 | try: |
@@ -536,6 +538,4 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
536 | if return_value == 0: | 538 | if return_value == 0: |
537 | return_value = 1 | 539 | return_value = 1 |
538 | 540 | ||
539 | termfilter.finish() | ||
540 | |||
541 | return return_value | 541 | return return_value |