Commit 806b1295 authored by Olav Kvittem's avatar Olav Kvittem
Browse files

catch signals and report

parent 1153ec66
Pipeline #43971 passed with stages
in 1 minute and 5 seconds
......@@ -48,7 +48,8 @@ if ( $#opt_cmd >= 0 ){ # externally spec'd commands
$opt_v=1;
}
$SIG{INT} = 'stop_threads';
$SIG{INT} = 'summary';
$SIG{TERM} = 'summary';
my @queues=();
my @fh=();
......@@ -82,9 +83,16 @@ while(<>){
}
}
summary();
exit (0);
printf "summary: would_block %d partial_write %d normal_write %d \n",
$would_block, $partial_write, $normal_write ;
#================================================================================
sub summary{
printf "summary: would_block %d partial_write %d normal_write %d \n",
$would_block, $partial_write, $normal_write ;
}
sub set_pipe_size{
my $fh = shift;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment