diff --git a/src/docs/changelog.md b/src/docs/changelog.md index 490982a..f26be5a 100644 --- a/src/docs/changelog.md +++ b/src/docs/changelog.md @@ -1,6 +1,6 @@ Changelog --------- -- **v4.2.3** +- **v4.2.5** - **Security**: removed all eval calls from the core. jsonFromStr now uses a safe manual parser; microTpl runs inside an isolated vm context; replace_calc returns content without executing it. - **Robustness**: removed all internal process.exit calls. Build, plugin, and child-process errors are now propagated or logged without killing the Node process. - **Performance**: replaced the file watcher from polling (setInterval + fs.statSync) to event-driven fs.watch, with a lightweight periodic refresh for new files. diff --git a/src/malta.js b/src/malta.js index 6ce4a52..b351dbb 100755 --- a/src/malta.js +++ b/src/malta.js @@ -1372,6 +1372,6 @@ Malta.prototype.shut = function () { // be sure to call malta stop when the user CTRL+C // -process.on('SIGINT', () => { Malta.stop('SIGINT'); }); +process.on('SIGINT', () => { Malta.stop('SIGINT'); process.exit(0); }); module.exports = Malta;