From 002179b07f6464b676e32b9a425138ab3960ea9f Mon Sep 17 00:00:00 2001 From: VennV <111500380+VennDev@users.noreply.github.com> Date: Wed, 21 Aug 2024 11:10:02 +0700 Subject: [PATCH] Update Thread! --- src/vennv/vapm/Thread.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vennv/vapm/Thread.php b/src/vennv/vapm/Thread.php index ed764d0c0..ed6d6208c 100644 --- a/src/vennv/vapm/Thread.php +++ b/src/vennv/vapm/Thread.php @@ -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;