[Process] Fix Permission Denied error when writing sf_proc_00 lock files on Windows
This commit is contained in:
parent
801f4cd7ac
commit
220be89f5c
@ -56,6 +56,9 @@ class WindowsPipes extends AbstractPipes
|
||||
$file = sprintf('%s\\sf_proc_%02X.%s', $tmpDir, $i, $name);
|
||||
|
||||
if (!$h = fopen($file.'.lock', 'w')) {
|
||||
if (file_exists($file.'.lock')) {
|
||||
continue 2;
|
||||
}
|
||||
restore_error_handler();
|
||||
throw new RuntimeException('A temporary file could not be opened to write the process output: '.$lastError);
|
||||
}
|
||||
|
Reference in New Issue
Block a user