Skip to content

Commit d88d28b

Browse files
authored
patch process exists for windows machines (#5577)
1 parent fe5786d commit d88d28b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

extension/src/process/execution.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,13 @@ export const executeProcess = async (
8585
return stdout
8686
}
8787

88-
export const processExists = (pid: number): Promise<boolean> =>
89-
doesProcessExist(pid)
88+
export const processExists = async (pid: number): Promise<boolean> => {
89+
try {
90+
return await doesProcessExist(pid)
91+
} catch {
92+
return false
93+
}
94+
}
9095

9196
export const stopProcesses = async (pids: number[]): Promise<boolean> => {
9297
let allKilled = true

0 commit comments

Comments
 (0)