From 7ed7181e928d93f1a50231f7dfc1846511744a1d Mon Sep 17 00:00:00 2001 From: "cls%seawood.org" Date: Thu, 11 Jan 2007 20:49:23 +0000 Subject: [PATCH] Make sure to use a unique filename for the logfile. Bug #360727 r=bear --- webtools/tinderbox/processbuild.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webtools/tinderbox/processbuild.pl b/webtools/tinderbox/processbuild.pl index 99a2f05a4ca..cd8954714b9 100755 --- a/webtools/tinderbox/processbuild.pl +++ b/webtools/tinderbox/processbuild.pl @@ -96,6 +96,8 @@ exit(0); sub process_mailfile($) { my ($mail_file) = @_; my $err = 0; + my $logfile_base = basename($mail_file); + $logfile_base =~ s/^tbx\.//; print "process_mailfile($mail_file)\n" if ($debug); @@ -140,7 +142,7 @@ sub process_mailfile($) { # Write data to "build.dat" # print "Write build.dat: $tinderbox{build}\n" if ($debug); - $tinderbox{logfile} = "$tinderbox{builddate}.$$.gz"; + $tinderbox{logfile} = "$tinderbox{builddate}.$logfile_base.gz"; write_build_data(\%tinderbox); # Add tree to changed trees list to later rebuild who.dat