MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / isAlive

Method isAlive

src/platform/common/process/proc.node.ts:45–55  ·  view source on GitHub ↗
(pid?: number)

Source from the content-addressed store, hash-verified

43 this.decoder = new BufferDecoder();
44 }
45 public static isAlive(pid?: number): boolean {
46 try {
47 if (!pid) {
48 return false;
49 }
50 process.kill(pid, 0);
51 return true;
52 } catch {
53 return false;
54 }
55 }
56 public static kill(pid?: number): void {
57 try {
58 if (!pid) {

Callers 3

killChildProcessesMethod · 0.80

Calls 1

killMethod · 0.65

Tested by

no test coverage detected