git.shiar.nl
/
barcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dc32f77
)
prefer SIGINFO for statistics if available
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 12 Sep 2019 17:07:24 +0000
(19:07 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 12 Sep 2019 15:48:11 +0000
(17:48 +0200)
barcat
patch
|
blob
|
history
diff --git
a/barcat
b/barcat
index 650e4060b1b30fd9c743d2f870c6998ade606578..de3f6f8459721ae78c734401961607eaef4c4e20 100755
(executable)
--- a/
barcat
+++ b/
barcat
@@
-87,7
+87,7
@@
$opt{'value-length'} = 1 if $opt{unmodified};
my (@lines, @values, @order);
my (@lines, @values, @order);
-$SIG{
QUIT} = \&show_stat
;
+$SIG{
$_} = \&show_stat for exists $SIG{INFO} ? 'INFO' : 'QUIT'
;
$SIG{ALRM} = sub {
show_lines();
alarm $opt{interval} if defined $opt{interval} and $opt{interval} > 0;
$SIG{ALRM} = sub {
show_lines();
alarm $opt{interval} if defined $opt{interval} and $opt{interval} > 0;