finally fixed Segmentation error caused by readline in child process

This commit is contained in:
2016-08-20 09:09:03 +02:00
parent 58b6a9a328
commit 8dd5c97f3b
4 changed files with 6 additions and 13 deletions

View File

@ -42,9 +42,5 @@ start(process.env.moduleNameArg, process.env.loaderLengthArg);
process.on('SIGINT', () => {
logEarlyAbort = true;
rl.write(null, { ctrl: true, name: 'u' });
rl.write(`loaded ${chalk.green(moduleName)}`);
rl.close();
rl.on("close",() => {
})
process.exit(0);
});

View File

@ -44,7 +44,7 @@ export let stop = function () {
if (doAnimation) {
earlyChild.kill("SIGINT");
earlyChild.on("close", function () {
console.log(` in ${executionTime} seconds!`);
console.log(`loaded ${chalk.green(moduleName)} in ${executionTime} seconds!`);
done.resolve();
})
} else {