File: phpbb/lock/flock.php
Unmodified
Added
Modified
Removed
Line 73 | Line 73 |
---|
// one file for writing simultaneously if (file_exists($this->path . '.lock')) {
|
// one file for writing simultaneously if (file_exists($this->path . '.lock')) {
|
$mode = 'rb';
| $mode = 'rb+';
|
} else {
| } else {
|
Line 89 | Line 89 |
---|
// Two processes may attempt to create lock file at the same time. // Have the losing process try opening the lock file again for reading // on the assumption that the winning process created it
|
// Two processes may attempt to create lock file at the same time. // Have the losing process try opening the lock file again for reading // on the assumption that the winning process created it
|
$mode = 'rb';
| $mode = 'rb+';
|
$this->lock_fp = @fopen($this->path . '.lock', $mode); } else
| $this->lock_fp = @fopen($this->path . '.lock', $mode); } else
|