1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Exit with status 130 on CTRL-C

http://www.tldp.org/LDP/abs/html/exitcodes.html

 #531
This commit is contained in:
Jakub Roztocil
2016-10-26 11:53:01 +02:00
parent b96eba336d
commit 9b23a4ac9a
6 changed files with 27 additions and 5 deletions

View File

@@ -11,6 +11,10 @@ class ExitStatus:
"""Exit status code constants."""
OK = 0
ERROR = 1
# 128+2 SIGINT <http://www.tldp.org/LDP/abs/html/exitcodes.html>
ERROR_CTRL_C = 130
ERROR_TIMEOUT = 2
ERROR_TOO_MANY_REDIRECTS = 6