Skip to content

Commit 88d135a

Browse files
committed
Allow interrupt on Windows
1 parent f8952da commit 88d135a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StaticPHP/Runtime/Shell/Shell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ protected function passthru(
171171
} else {
172172
$env = null;
173173
}
174-
$process = proc_open($cmd, $descriptors, $pipes, $cwd, env_vars: $env);
174+
$process = proc_open($cmd, $descriptors, $pipes, $cwd, env_vars: $env, options: PHP_OS_FAMILY === 'Windows' ? ['create_process_group' => true] : null);
175175

176176
$output_value = '';
177177
try {

0 commit comments

Comments
 (0)