Skip to content

Commit

Permalink
more more.
Browse files Browse the repository at this point in the history
  • Loading branch information
taeold committed Nov 1, 2023
1 parent 9af4a18 commit abd5c0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/bin-test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,14 @@ async function startBin(
try {
process.kill(proc.pid, 0);
} catch {
console.log("yay pid no longer exists");
// process.kill w/ signal 0 will throw an error if the pid no longer exists.
return Promise.resolve(true);
}
console.log("nay pid STILL exists");
return Promise.resolve(false);
},
TIMEOUT_S
TIMEOUT_L
);
},
};
Expand Down

0 comments on commit abd5c0f

Please sign in to comment.