Skip to content

Commit 441fb20

Browse files
Merge branch '5.0' into 5.1
* 5.0: minor #37121 [Contracts] Add missing "extra.thanks" entries in composer.json (nicolas-grekas) [Process] Fix Permission Denied error when writing sf_proc_00 lock files on Windows fix handling null as empty data No need to create an issue when creating a PR Use ">=" for the "php" requirement [HttpClient] Fix promise behavior in HttplugClient [Console] Fixes question input encoding on Windows
2 parents 7f6378c + b521141 commit 441fb20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Pipes/WindowsPipes.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ public function __construct($input, bool $haveReadSupport)
5656
$file = sprintf('%s\\sf_proc_%02X.%s', $tmpDir, $i, $name);
5757

5858
if (!$h = fopen($file.'.lock', 'w')) {
59+
if (file_exists($file.'.lock')) {
60+
continue 2;
61+
}
5962
restore_error_handler();
6063
throw new RuntimeException('A temporary file could not be opened to write the process output: '.$lastError);
6164
}

0 commit comments

Comments
 (0)