Skip to content

Commit f4eca44

Browse files
authored
Update Thread!
1 parent d6cd682 commit f4eca44

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vennv/vapm/Thread.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ public function start(array $mode = DescriptorSpec::BASIC): Promise
452452
if ($n > 0) {
453453
foreach ($read as $stream) {
454454
if (!feof($stream)) {
455+
stream_set_blocking($stream, false);
455456
$data = stream_get_contents($stream, 1024);
456457
if ($data === false || $data === '') continue;
457458
$stream === $pipes[1] ? $output .= $data : $error .= $data;

0 commit comments

Comments
 (0)