mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-05 09:36:18 +00:00
Clarify that process.exit() is a hack
This commit is contained in:
parent
3da773c27f
commit
e553539b2a
@ -25,6 +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.
|
||||
process.exit();
|
||||
return null;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user