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:
parent
de409b619d
commit
2672001a35
5 changed files with 43 additions and 17 deletions
|
@ -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': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue