sanitycheck: clean up TTY on exit
The code has a lot of sys.exit() calls, but internally these just raise a special exception. Add a try...finally block to ensure 'stty sane' is run before leaving the script. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
0fb370b257
commit
1fe1f3a23d
1 changed files with 4 additions and 1 deletions
|
@ -4309,4 +4309,7 @@ def main():
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
try:
|
||||
main()
|
||||
finally:
|
||||
os.system("stty sane")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue