Skip to content

Commit 2b77f2b

Browse files
committed
WIP
1 parent 9d0d7e0 commit 2b77f2b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ProcessManager.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
class ProcessManager
88
{
99
private string $binaryPath;
10-
1110
private $currentProcess = null;
1211

1312
public function __construct(string $binaryPath)
@@ -63,7 +62,6 @@ public function execute(array $config, bool $streamOutput): string
6362
$this->currentProcess = null;
6463
if ($exitCode !== 0) {
6564
echo "\nError: " . trim($stderrContent) . "\n";
66-
6765
return '';
6866
}
6967
}
@@ -174,7 +172,7 @@ protected function closeProcess($process): int
174172
// Windows-specific termination sequence
175173
if (DIRECTORY_SEPARATOR === '\\') {
176174
proc_terminate($process);
177-
usleep(100000); // Allow time for termination
175+
usleep(100000);
178176
$status = proc_get_status($process);
179177
if ($status['running']) {
180178
proc_terminate($process, SIGKILL);

0 commit comments

Comments
 (0)