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:
parent
0cd2e361ab
commit
c17f9fdfff
@ -191,3 +191,12 @@ def main():
|
|||||||
print e
|
print e
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
|
try:
|
||||||
|
sys.stdout.close()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
try:
|
||||||
|
sys.stderr.close()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user