Return-Path: X-Original-To: apmail-phoenix-commits-archive@minotaur.apache.org Delivered-To: apmail-phoenix-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 34B7B171D2 for ; Tue, 28 Oct 2014 23:58:47 +0000 (UTC) Received: (qmail 72672 invoked by uid 500); 28 Oct 2014 23:58:47 -0000 Delivered-To: apmail-phoenix-commits-archive@phoenix.apache.org Received: (qmail 72570 invoked by uid 500); 28 Oct 2014 23:58:47 -0000 Mailing-List: contact commits-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list commits@phoenix.apache.org Received: (qmail 72391 invoked by uid 99); 28 Oct 2014 23:58:46 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2014 23:58:46 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 95898998F8F; Tue, 28 Oct 2014 23:58:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jamestaylor@apache.org To: commits@phoenix.apache.org Date: Tue, 28 Oct 2014 23:58:47 -0000 Message-Id: <3ceb139fccb64e62965f30871bc7cfb1@git.apache.org> In-Reply-To: <49ca35eca0304465bb38c9356b66fe83@git.apache.org> References: <49ca35eca0304465bb38c9356b66fe83@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [02/24] git commit: PHOENIX-1373: Ctrl-C out of sqlline causes terminal to be useless 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 Authored: Thu Oct 23 17:34:43 2014 -0700 Committer: Jeffrey Zhong 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()