Fix CLI sm-dump output

Cryptic message shown by CLI 'sudo sm-dump | head' properly close stdout
and stderr

Change-Id: I8437fff51993e12f4bfee1379ef3c0a8bc1109c3
Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
This commit is contained in:
Bin Qian 2018-03-29 09:31:43 -04:00 committed by Kristine Bujold
parent 0cd2e361ab
commit c17f9fdfff
1 changed files with 9 additions and 0 deletions

View File

@ -191,3 +191,12 @@ def main():
print e
sys.exit(-1)
try:
sys.stdout.close()
except:
pass
try:
sys.stderr.close()
except:
pass