commit 4949338669cb5e3bb90d618dacf516fd691ea987
parent 9548bc9d100b34f9105831330d1811a78871235c
Author: RobinLinus <robinlinus@users.noreply.github.com>
Date: Tue, 22 Dec 2020 20:32:55 +0100
Merge branch 'master' of github.com:RobinLinus/snapdrop
Diffstat:
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/server/index.js b/server/index.js
@@ -1,3 +1,16 @@
+var process = require('process')
+// Handle SIGINT
+process.on('SIGINT', () => {
+ console.info("SIGINT Received, exiting...")
+ process.exit(0)
+})
+
+// Handle SIGTERM
+process.on('SIGTERM', () => {
+ console.info("SIGTERM Received, exiting...")
+ process.exit(0)
+})
+
const parser = require('ua-parser-js');
const { uniqueNamesGenerator, animals, colors } = require('unique-names-generator');