From 2916cb6fd912df035c9fd486dc1ad34cd90eb480 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 14 Mar 2024 11:55:55 +0000 Subject: [PATCH] Clarify comment Thanks @pmario --- core/modules/commands/quit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/commands/quit.js b/core/modules/commands/quit.js index cb086b8d4..5d99985eb 100644 --- a/core/modules/commands/quit.js +++ b/core/modules/commands/quit.js @@ -25,8 +25,8 @@ var Command = function(params,commander,callback) { }; Command.prototype.execute = function() { - // The Node.js docs are unequivocal that exiting in this way can be dangerous because pending I/O is cancelled. - // It would be better to just stop the server listeners explicitly so that Node.js will exit the process naturally. + // The Node.js docs are very clear that exiting in this way can be dangerous because pending I/O is cancelled. + // TODO: stop the server listeners explicitly so that Node.js will exit the process naturally. process.exit(); return null; };