Bug 660235 — Consistent signal handlers to a terminal would be cool
authorPhilip Withnall <philip@tecnocode.co.uk>
Fri, 13 Jan 2012 19:37:29 +0000 (19:37 +0000)
committerPhilip Withnall <philip@tecnocode.co.uk>
Mon, 26 Mar 2012 12:08:46 +0000 (13:08 +0100)
commit456575eb920abe5c132d22db0871b5a7fcdde74f
tree6d97153d18d95d63c15dd26a76e30639c4f0e28a
parent75c7fb1803a27a608d75ffda41306ef9082aa01c
Bug 660235 — Consistent signal handlers to a terminal would be cool

Fix folks-inspect’s handling of SIGINT, SIGTERM and EOF. In the former case,
we want to clear the current input buffer and display a new prompt. In
the case of SIGTERM we want to exit cleanly, and in the case of EOF we want
to exit if the input buffer is empty.

The combination of readline, Unix signals and threads in this was unfun.

Closes: https://bugzilla.gnome.org/show_bug.cgi?id=660235
NEWS
tools/inspect/Makefile.am
tools/inspect/inspect.vala