Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 100d0e0

Browse files
committed
chore: Fix SIGINT handling for perf all-in-one
1 parent 29f7603 commit 100d0e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/test/src/perf/all-in-one.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ async function main() {
3030

3131
const workerArgs = argsToForward(workerArgSpec, args);
3232
const worker = spawn('node', [path.resolve(__dirname, 'worker.js'), ...workerArgs], { shell, stdio: 'inherit' });
33+
process.once('SIGINT', () => kill(worker, 'SIGINT').catch(() => /* ignore */ undefined));
3334

3435
try {
3536
const starterArgs = argsToForward(starterArgSpec, args);

0 commit comments

Comments
 (0)