summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class7
1 files changed, 4 insertions, 3 deletions
diff --git a/it.class b/it.class
index 8d751a0..367908d 100644
--- a/it.class
+++ b/it.class
@@ -86,9 +86,10 @@ static function log($name /* ... */)
{
if (!file_exists($fullfn))
{
- @touch("$fullfn.tmp");
- @chgrp("$fullfn.tmp", "www");
- @rename("$fullfn.tmp", $fullfn);
+ $tmp = getmypid();
+ @touch("$fullfn.$tmp");
+ @chgrp("$fullfn.$tmp", "www");
+ @rename("$fullfn.$tmp", $fullfn);
@unlink($basefn);
@symlink($fullfn, $basefn);
}