1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added server process cleanup.

This commit is contained in:
Ylian Saint-Hilaire 2019-07-17 15:57:42 -07:00
parent de409b619d
commit 2672001a35
5 changed files with 43 additions and 17 deletions

View file

@ -17,6 +17,10 @@
const crypto = require('crypto');
var certStore = null;
// When the parent process terminates, we exit also.
process.on('disconnect', function () { process.exit(); });
// Handle parent messages
process.on('message', function (message) {
switch (message.action) {
case 'sign': {