Skip to content

Commit

Permalink
fix: force kill in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden committed Sep 21, 2019
1 parent 456a169 commit e599faf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/remote/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ async function killOrphans() {
debug('killing orphan');
debug(`${orphan.cmd} ${orphan.pid}`);
try {
await module.exports.fkill(orphan.pid);
await module.exports.fkill(orphan.pid, {
force: process.platform === 'win32',
});
} catch (err) {
if (/(Process doesn't exist|No such process)/.test(err.message)) {
debug(err.message);
Expand Down

0 comments on commit e599faf

Please sign in to comment.