PHOENIX-1373: Ctrl-C out of sqlline causes terminal to be useless
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/e8a0355a Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/e8a0355a Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/e8a0355a Branch: refs/heads/4.2 Commit: e8a0355a4734beaf69998754f617172974b46670 Parents: 6a28b7d Author: Jeffrey Zhong <[email protected]> Authored: Thu Oct 23 17:34:43 2014 -0700 Committer: Jeffrey Zhong <[email protected]> Committed: Thu Oct 23 17:34:43 2014 -0700 ---------------------------------------------------------------------- bin/sqlline.py | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/e8a0355a/bin/sqlline.py ---------------------------------------------------------------------- diff --git a/bin/sqlline.py b/bin/sqlline.py index d41c2e7..f48e527 100755 --- a/bin/sqlline.py +++ b/bin/sqlline.py @@ -31,6 +31,8 @@ def kill_child(): if childProc is not None: childProc.terminate() childProc.kill() + if os.name != 'nt': + os.system("reset") atexit.register(kill_child) phoenix_utils.setPath()
