From: Mischa POSLAWSKY Date: Wed, 11 Sep 2019 14:55:40 +0000 (+0200) Subject: only ignore interrupt signal after input X-Git-Tag: v1.06~11 X-Git-Url: http://git.shiar.nl/barcat.git/commitdiff_plain/4b923ab2bc237314a2e3558bd16301811ebd1898 only ignore interrupt signal after input Assume no input is an unpiped invocation a user tries to abort by ctrl-C. --- diff --git a/barcat b/barcat index 1b780e6..2f73fa5 100755 --- a/barcat +++ b/barcat @@ -100,6 +100,7 @@ if (defined $opt{interval}) { $SIG{INT} = sub { $SIG{INT} = 'DEFAULT'; # reset for subsequent attempts + exit if !$.; 'IGNORE' # continue after assumed eof };