We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03d3c1a commit 26383d5Copy full SHA for 26383d5
scripts/poller.js
@@ -55,6 +55,10 @@ process.on('SIGINT', function () {
55
process.exit();
56
});
57
58
+process.on('SIGTERM', function() {
59
+ process.exit();
60
+})
61
+
62
function mapper(field) {
63
return function(object) {
64
return object[field];
server.js
@@ -87,6 +87,18 @@ function startPolling() {
87
88
startPolling();
89
90
91
+ process.on('exit', function(code) {
92
+ child.kill();
93
+ })
94
95
+ process.on('SIGINT', function () {
96
97
+ });
98
99
+ process.on('SIGTERM', function() {
100
101
102
}
103
104
0 commit comments