Skip to content
Browse files

Catch SIGQUIT and gracefully exit tig

Ctrl+4 sends a SIGQUIT to tig, which results in printing a
"Quit (core dumped)" message and leaving the console dirty.

This patch catches the signal in order to correctly end the session.

Signed-off-by: Vivien Didelot <>
Signed-off-by: Jonas Fonseca <>
  • Loading branch information...
1 parent a51cb56 commit 571bc1d2b695a09100be649b26267b3abdc771d9 @vivien vivien committed with Mar 21, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 tig.c
1 tig.c
@@ -8493,6 +8493,7 @@ main(int argc, const char *argv[])
int i;
signal(SIGINT, quit);
+ signal(SIGQUIT, quit);
if (setlocale(LC_ALL, "")) {

0 comments on commit 571bc1d

Please sign in to comment.
Something went wrong with that request. Please try again.