diff options
author | Kevron Rees <kevron.m.rees@intel.com> | 2014-12-30 13:37:25 -0800 |
---|---|---|
committer | Kevron Rees <kevron.m.rees@intel.com> | 2014-12-30 13:37:25 -0800 |
commit | cfb0b136bbfa291aca82f06665edea88a2cdce30 (patch) | |
tree | b6df2e251a4d9f4ea253b9d949b010f076d83b60 | |
parent | 37de1221f9f67c0064237f41f4e2617ae69e6a60 (diff) | |
download | automotive-message-broker-cfb0b136bbfa291aca82f06665edea88a2cdce30.tar.gz |
[ambctl] fixed quit
-rw-r--r-- | tools/ambctl.py | 4 |
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:]) |