Comment on bad side-effect of process.exit.

This commit is contained in:
Nick Martin
2012-01-27 23:37:37 -08:00
parent b367f4a6e1
commit 118a217fde

View File

@@ -557,6 +557,11 @@ exports.run = function (app_dir, bundle_opts, port) {
if (!deps_info) {
// We don't know what files to watch for changes, so we have to exit.
process.stdout.write("\nPlease fix the problem and restart.\n");
// XXX calling process.exit like this leaves mongod running!
// One solution would be to try to kill mongo in this case. Or
// we could try to bundle before we launch mongo, so in this case
// mongo would never have been started.
process.exit(1);
}
start_watching();