Commit 956129b4 authored by Jon Kåre Hellan's avatar Jon Kåre Hellan

Another attempt to fix the double printout race. Debian version 0.4-7

parent 9a0226e4
qstream (0.4-7) unstable; urgency=low
* Another attempt to fix the double printout race. svn version r37.
-- Jon K Hellan <jk@iou1.uninett.no> Fri, 06 Jul 2012 10:19:48 +0200
qstream (0.4-6) unstable; urgency=low
* Don't call display_stats when endstream flag is set. Fixes double
printout problem. svn version r36.
-- Jon K Hellan <jon.kare.hellan@uninett.no> Thu, 05 Jul 2012 12:47:00 +0200
qstream (0.4-5) unstable; urgency=low
* Don't call init_stats from display_stats. Fixes use after free panic.
......
......@@ -170,10 +170,12 @@ $SIG{ALRM} = sub {
# Writes stats to file if option XML is given. -PMM
# die "No packets received" if $n_packets < 1;
# $uninterrupted=0;
&display_stats() if !$endstream;
if (! $endstream) {
$endstream=1;
&display_stats();
}
# die "End after alarm\n";
# return(0);
$endstream=1;
print "endstream=1" if $opt_debug;
};
......
Markdown is supported
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