hush: make SIGINT handling visually less confusing
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 2 Aug 2017 14:52:12 +0000 (16:52 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 2 Aug 2017 14:52:12 +0000 (16:52 +0200)
commitdd4b446f76736c0a13a61a38d7d816b6e6b5fca2
treef087ac7c9c2d4a041a55fb3974ee8b9babe336bc
parent7c40ddd9500907925041131374cb43eb87ef5494
hush: make SIGINT handling visually less confusing

$ echo $$
18448
$ echo $? <wait here, run "kill -INT 18448" in other shell><press enter>
   <=== NOTHING??
$

That empty line does not look right. After this patch:

$ echo $$
18448
$ echo $? <wait here, run "kill -INT 18448" in other shell><press enter>
^C
$

function                                             old     new   delta
fgetc_interactive                                    245     246      +1

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c