perf tui: Catch signals to exit gracefully
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Oct 2011 15:45:16 +0000 (13:45 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Oct 2011 16:00:25 +0000 (14:00 -0200)
commit3f7247e0725de9643ce5a02b082c81c617476fd5
tree4f30641721feb1349ea8e541678d8290e8cd91a5
parent2d5646c0d58697c63e1fe6f227165637ca04a6c4
perf tui: Catch signals to exit gracefully

Resetting the terminal to a sane state.

Reported-by: Ingo Molnar <mingo@elte.hu>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-myu44ujofadcy3y6an2mk383@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/ui/setup.c