mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: do not log process not found warning on win when PID is not found (#7500)
This commit is contained in:
parent
a481de0871
commit
ee0497c725
@ -173,7 +173,7 @@ export async function launchProcess(options: LaunchProcessOptions): Promise<Laun
|
||||
// Force kill the browser.
|
||||
try {
|
||||
if (process.platform === 'win32') {
|
||||
const stdout = childProcess.execSync(`taskkill /pid ${spawnedProcess.pid} /T /F`);
|
||||
const stdout = childProcess.execSync(`taskkill /pid ${spawnedProcess.pid} /T /F /FI "MEMUSAGE gt 0"`);
|
||||
options.log(`[pid=${spawnedProcess.pid}] taskkill output: ${stdout.toString()}`);
|
||||
} else {
|
||||
process.kill(-spawnedProcess.pid, 'SIGKILL');
|
||||
|
Loading…
x
Reference in New Issue
Block a user