Skip to content

Commit 5a9da21

Browse files
committed
Fix issue where abnormal exits would cause
problems with tty handling. Also change exit code to reflect abnormal exit.
1 parent 009418c commit 5a9da21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/github/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,9 @@ def close(self):
189189
try:
190190
self.proc.wait()
191191
except KeyboardInterrupt:
192-
# TODO: should kill the self.proc here gracefully
193-
sys.exit(0) # close silently no matter what
192+
sys.proc.kill()
193+
sys.exit(1)
194+
194195

195196

196197
def wrap_text(text, width=79):

0 commit comments

Comments
 (0)