mirror of
https://github.com/php/php-src.git
synced 2026-04-26 09:28:21 +02:00
Silence potential taskkill error messages
That test is still intermittently failing, because failure to kill the child process is reported. Therefore we silence these error messages.
This commit is contained in:
@@ -22,7 +22,7 @@ $bug_is_present = !proc_get_status($proc)['running'];
|
||||
if (!$bug_is_present) {
|
||||
// if the bug is not present, it will hang waiting for stdin,
|
||||
// thus cmd is still running and we should kill it
|
||||
shell_exec("taskkill /T /F /PID {$pid}");
|
||||
shell_exec("taskkill /T /F /PID {$pid} 2>nul");
|
||||
}
|
||||
fclose($pipes[0]);
|
||||
fclose($pipes[1]);
|
||||
|
||||
Reference in New Issue
Block a user