mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 05:35:42 +08:00
Added comment for SIGUSR2
This commit is contained in:
@@ -37,7 +37,8 @@ util.onshutdown = (jobs) => {
|
||||
};
|
||||
|
||||
// Attach to the SIGTERM + SIGINT handles to ensure a clean shutdown in the
|
||||
// event that we have an external event.
|
||||
// event that we have an external event. SIGUSR2 is called when the app is asked
|
||||
// to be 'killed', same procedure here.
|
||||
process.on('SIGTERM', () => util.shutdown());
|
||||
process.on('SIGINT', () => util.shutdown());
|
||||
process.once('SIGUSR2', () => util.shutdown());
|
||||
|
||||
Reference in New Issue
Block a user