finally fixed Segmentation error caused by readline in child process
This commit is contained in:
@ -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);
|
||||
});
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user