modified with the kill command to terminate the root process in tree-kill module.
Change-Id: I7bd9b8e74494d87b54fa4dd8215ad759d3c1a7ba
Signed-off-by: ChangHyun Lee <leechwin.lee@samsung.com>
"winston": "~2.3.0",
"jsnlog": "~2.22.0",
"jsnlog-nodejs": "~2.22.0",
- "moment": "~2.17.1"
+ "moment": "~2.17.1",
+ "tree-kill": "https://github.com/leechwin/node-tree-kill.git#master"
},
"devDependencies": {
"bower": "~1.8.0",
var fs = require('fs');
var path = require('path');
var exec = require('child_process').exec;
+var TreeKill = require('tree-kill');
var util = require('util');
var JL = require('jsnlog').JL;
var SocketEvent = require('./socketEvent');
if (ps === null) {
return;
}
- ps.kill();
+ TreeKill(ps.pid, 'SIGKILL');
ps = null;
}