When an exception occurred, the terminal parameters (such as echo)
may not be reset correctly. This change ensures they do get
atexit time in all cases, avoiding the terminal corruption issues
that could sometimes occur.
(Bitbake rev:
e1d89166f2dfe46412ff9a5610dd57b0cef74fe3)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
import fcntl
import struct
import copy
+import atexit
from bb.ui import uihelper
logger = logging.getLogger("BitBake")
taskfailures = []
termfilter = tf(main, helper, console, format)
+ atexit.register(termfilter.finish)
while True:
try:
if return_value == 0:
return_value = 1
- termfilter.finish()
-
return return_value