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

mkdir compatibility fix in indexer #575

darcs-hash:20050930151407-7ad00-56002a89c36a82a249de577227929ace91ebad2f.gz
parent 93a60ad2
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ if($last > @filemtime(wikiFN($ID))) sendGIF();
// try to aquire a lock
$lock = $conf['lockdir'].'/_indexer.lock';
while(!@mkdir($lock)){
while(!@mkdir($lock,0777)){
if(time()-@filemtime($lock) > 60*5){
// looks like a stale lock - remove it
@rmdir($lock);
......
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