From 6434a185b352817203ea954ee9224db49ec01797 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Fri, 14 Feb 2025 23:06:00 -0800 Subject: [PATCH] Unlink file on keyboard interrupt --- benchmark/core.bench.js | 1 + 1 file changed, 1 insertion(+) diff --git a/benchmark/core.bench.js b/benchmark/core.bench.js index 22d04c6..1032992 100644 --- a/benchmark/core.bench.js +++ b/benchmark/core.bench.js @@ -8,6 +8,7 @@ const NAME_LENGTH = 15; const temp = await createTempFile(); process.on('exit', () => unlinkSync(temp)); +process.on('SIGINT', () => process.exit()); let iter = 0; await benchmarkIterations('1MB Write'.padEnd(NAME_LENGTH, '.'), 20, async () => { -- 2.47.3