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.
1 parent fe5786d commit d88d28bCopy full SHA for d88d28b
extension/src/process/execution.ts
@@ -85,8 +85,13 @@ export const executeProcess = async (
85
return stdout
86
}
87
88
-export const processExists = (pid: number): Promise<boolean> =>
89
- doesProcessExist(pid)
+export const processExists = async (pid: number): Promise<boolean> => {
+ try {
90
+ return await doesProcessExist(pid)
91
+ } catch {
92
+ return false
93
+ }
94
+}
95
96
export const stopProcesses = async (pids: number[]): Promise<boolean> => {
97
let allKilled = true
0 commit comments