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.
taskkill
1 parent a071f36 commit d1aada2Copy full SHA for d1aada2
src/Context/FeatureContext.php
@@ -763,6 +763,10 @@ public function afterScenario( AfterScenarioScope $scope ): void {
763
* @param int $master_pid
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 ) );
768
+ return;
769
+ }
770
771
$output = shell_exec( "ps -o ppid,pid,command | grep $master_pid" );
772
0 commit comments