mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 12:52:54 -05:00
Added server process cleanup.
This commit is contained in:
@@ -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': {
|
||||
|
||||
Reference in New Issue
Block a user