summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevron Rees <kevron.m.rees@intel.com>2014-12-30 13:37:25 -0800
committerKevron Rees <kevron.m.rees@intel.com>2014-12-30 13:37:25 -0800
commitcfb0b136bbfa291aca82f06665edea88a2cdce30 (patch)
treeb6df2e251a4d9f4ea253b9d949b010f076d83b60
parent37de1221f9f67c0064237f41f4e2617ae69e6a60 (diff)
downloadautomotive-message-broker-cfb0b136bbfa291aca82f06665edea88a2cdce30.tar.gz
[ambctl] fixed quit
-rw-r--r--tools/ambctl.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/ambctl.py b/tools/ambctl.py
index 836503bf..f3d5b428 100644
--- a/tools/ambctl.py
+++ b/tools/ambctl.py
@@ -300,7 +300,9 @@ if args.command == "stdin":
print ""
words = data.line.split(' ')
if words[0] == "quit":
- sys.exit()
+ termios.tcsetattr(fd, termios.TCSAFLUSH, old)
+ fcntl.fcntl(fd, fcntl.F_SETFL, oldflags)
+ sys.exit()
try:
if len(words) > 1:
processCommand(words[0], words[1:])