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 2097ea7 commit ca7d868Copy full SHA for ca7d868
packages/core/src/runtime/worker/index.ts
@@ -276,8 +276,8 @@ const runInPool = async (
276
};
277
278
const kill = process.kill.bind(process);
279
- process.kill = (pid, signal) => {
280
- if (pid === process.pid) {
+ process.kill = (pid: number, signal?: NodeJS.Signals) => {
+ if (pid === -1 || Math.abs(pid) === process.pid) {
281
throw new Error(
282
`process.kill unexpectedly called with "${pid}" and "${signal}"`,
283
);
0 commit comments