We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1aada2 commit 94ba759Copy full SHA for 94ba759
src/Context/FeatureContext.php
@@ -764,7 +764,7 @@ public function afterScenario( AfterScenarioScope $scope ): void {
764
*/
765
private static function terminate_proc( $master_pid ): void {
766
if ( Utils\is_windows() ) {
767
- proc_close( proc_open( "taskkill /F /T /PID $master_pid", [], $pipes ) );
+ shell_exec( "taskkill /F /T /PID $master_pid > NUL 2>&1" );
768
return;
769
}
770
@@ -781,6 +781,10 @@ private static function terminate_proc( $master_pid ): void {
781
782
783
784
+ if ( ! function_exists( 'posix_kill' ) ) {
785
+ return;
786
+ }
787
+
788
if ( ! posix_kill( (int) $master_pid, 9 ) ) {
789
$errno = posix_get_last_error();
790
// Ignore "No such process" error as that's what we want.
0 commit comments