diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2006-08-27 09:39:14 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2006-08-27 09:39:14 +0000 |
commit | d2e613ce766fe9d17d326b05d5a9688426000f09 (patch) | |
tree | 67207672f529e679c8106994af4ba24edb49cd85 /sitesummary-collector.cgi | |
parent | 23f8d53fa3eaf5b18212a23a274b55fca72357a5 (diff) | |
download | sitesummary-d2e613ce766fe9d17d326b05d5a9688426000f09.tar.gz sitesummary-d2e613ce766fe9d17d326b05d5a9688426000f09.tar.bz2 sitesummary-d2e613ce766fe9d17d326b05d5a9688426000f09.tar.xz |
* Make temp file name more unique by adding process id to it, while
I wait for a working getpeername call.
Diffstat (limited to 'sitesummary-collector.cgi')
-rw-r--r-- | sitesummary-collector.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sitesummary-collector.cgi b/sitesummary-collector.cgi index be640b4..1c225d7 100644 --- a/sitesummary-collector.cgi +++ b/sitesummary-collector.cgi @@ -74,7 +74,7 @@ if ($filename =~ m/.tar.gz$/) { } # XXX Come up with some unique file name. -my $savefile = "$basedir/tmpstorage/$peeripaddr-$timestamp-$filename"; +my $savefile = "$basedir/tmpstorage/$peeripaddr-$timestamp-$$-$filename"; open(SITESUMMARY, ">$savefile") or die "Unable to write to $savefile"; print SITESUMMARY @entry; |