From 0785266741fca37e37106e2744f190fbcf3de38e Mon Sep 17 00:00:00 2001 From: "girish@cloudron.io" Date: Tue, 9 Feb 2016 12:03:09 -0800 Subject: [PATCH] kill immediately. by default, it sends SIGTERM --- src/taskmanager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/taskmanager.js b/src/taskmanager.js index d917cd9d2..84df098aa 100644 --- a/src/taskmanager.js +++ b/src/taskmanager.js @@ -137,7 +137,7 @@ function stopAppTask(appId, callback) { if (gActiveTasks[appId]) { debug('stopAppTask : Killing existing task of %s with pid %s', appId, gActiveTasks[appId].pid); gActiveTasks[appId].once('exit', function () { callback(); }); - gActiveTasks[appId].kill(); // this will end up calling the 'exit' handler + gActiveTasks[appId].kill('SIGKILL'); // this will end up calling the 'exit' handler return; }