Skip to content

Commit eb1b84b

Browse files
authored
CLI: Do not exit(0) so each module can close its connections (#3634)
1 parent 80ec61f commit eb1b84b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/cli/parse-server.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ function startServer(options, callback) {
8484
const handleShutdown = function() {
8585
console.log('Termination signal received. Shutting down.');
8686
destroyAliveConnections();
87-
server.close(function () {
88-
process.exit(0);
89-
});
87+
server.close();
9088
};
9189
process.on('SIGTERM', handleShutdown);
9290
process.on('SIGINT', handleShutdown);

0 commit comments

Comments
 (0)