Skip to content

Commit

Permalink
Exit process on receipt of OS SIGINT signal
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Feb 11, 2024
1 parent 9f79bbb commit a44549e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -417,3 +417,8 @@ export default {
port,
fetch: app.fetch,
}

process.on('SIGINT', function() {
console.info("Caught interrupt signal. Exiting.");
process.exit();
});

0 comments on commit a44549e

Please sign in to comment.