diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); } |