[master] 872fb13 Reintroduce Ctrl-C and Ctrl-Z key handlers in varnishstat
Martin Blix Grydeland
martin at varnish-cache.org
Tue Oct 1 14:48:19 CEST 2013
commit 872fb1372c2cb05a16b4f00ef499325eeeec1a4a
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Tue Oct 1 09:54:16 2013 +0200
Reintroduce Ctrl-C and Ctrl-Z key handlers in varnishstat
diff --git a/bin/varnishstat/varnishstat_curses.c b/bin/varnishstat/varnishstat_curses.c
index 16df1b4..d870016 100644
--- a/bin/varnishstat/varnishstat_curses.c
+++ b/bin/varnishstat/varnishstat_curses.c
@@ -832,9 +832,15 @@ handle_keypress(int ch)
case 'Q':
keep_running = 0;
return;
+ case '\003': /* Ctrl-C */
+ AZ(raise(SIGINT));
+ return;
case '\024': /* Ctrl-T */
sample = 1;
return;
+ case '\032': /* Ctrl-Z */
+ AZ(raise(SIGTSTP));
+ return;
default:
return;
}
More information about the varnish-commit
mailing list