From 4921f8db4bce645d569017054abc18886d7ecaa5 Mon Sep 17 00:00:00 2001 From: cenfun Date: Fri, 19 Jan 2024 14:34:34 +0800 Subject: [PATCH] try fix linux kill --- test/test-node-koa.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-node-koa.js b/test/test-node-koa.js index ffaf1d2c..8f7a527a 100644 --- a/test/test-node-koa.js +++ b/test/test-node-koa.js @@ -78,7 +78,7 @@ const killSubProcess = (cp) => { // In case of POSIX and `SIGINT` signal, send it to the main process group only. try { - process.kill(-cp.pid, 'SIGINT'); + process.kill(cp.pid, 'SIGKILL'); } catch (e) { // the process might have already stopped }