clay-server 2.20.1-beta.15 → 2.20.1-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/sdk-worker.js +3 -1
- package/package.json +1 -1
package/lib/sdk-worker.js
CHANGED
|
@@ -434,18 +434,20 @@ conn.on("error", function(err) {
|
|
|
434
434
|
});
|
|
435
435
|
|
|
436
436
|
conn.on("close", function() {
|
|
437
|
-
|
|
437
|
+
try { require("fs").writeSync(2, "[sdk-worker] EXIT REASON: socket closed\n"); } catch (e) {}
|
|
438
438
|
cleanup();
|
|
439
439
|
process.exit(0);
|
|
440
440
|
});
|
|
441
441
|
|
|
442
442
|
// Handle process signals
|
|
443
443
|
process.on("SIGTERM", function() {
|
|
444
|
+
try { require("fs").writeSync(2, "[sdk-worker] EXIT REASON: SIGTERM\n"); } catch (e) {}
|
|
444
445
|
cleanup();
|
|
445
446
|
process.exit(0);
|
|
446
447
|
});
|
|
447
448
|
|
|
448
449
|
process.on("SIGINT", function() {
|
|
450
|
+
try { require("fs").writeSync(2, "[sdk-worker] EXIT REASON: SIGINT\n"); } catch (e) {}
|
|
449
451
|
cleanup();
|
|
450
452
|
process.exit(0);
|
|
451
453
|
});
|