Skip to content
Snippets Groups Projects
Commit 77b98903 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

avoid trolling in io_lock()

darcs-hash:20060517165023-7ad00-f3583cd929bf80721593f8fc77fb74bd6b864b03.gz
parent d712b399
No related branches found
No related tags found
No related merge requests found
......@@ -181,7 +181,11 @@ function io_lock($file){
//waited longer than 3 seconds? -> stale lock
if ((time() - $timeStart) > 3) break;
$locked = @mkdir($lockDir, $conf['dmode']);
if($locked && $conf['dperm']) chmod($lockDir, $conf['dperm']);
if($locked){
if($conf['dperm']) chmod($lockDir, $conf['dperm']);
break;
}
usleep(50);
} while ($locked === false);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment