Skip to content

Commit

Permalink
Update Thread!
Browse files Browse the repository at this point in the history
  • Loading branch information
VennDev authored Aug 21, 2024
1 parent 082bf95 commit 002179b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vennv/vapm/Thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ public function start(array $mode = DescriptorSpec::BASIC): Promise
if ($n > 0) {
foreach ($read as $stream) {
if (!feof($stream)) {
stream_set_blocking($stream, false);
$data = stream_get_contents($stream, 1024);
if ($data === false || $data === '') continue;
$stream === $pipes[1] ? $output .= $data : $error .= $data;
Expand Down

0 comments on commit 002179b

Please sign in to comment.