Make sure to use a unique filename for the logfile.

Bug #360727 r=bear
This commit is contained in:
cls%seawood.org 2007-01-11 20:49:23 +00:00
Родитель 69f54c3491
Коммит 7ed7181e92
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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