Simplify the spawn handler and close the socket
buildbot/multibuild_parent Build done. Details
buildbot/travis_bionic Build done. Details

This commit is contained in:
Lee Miller 2024-04-01 04:00:10 +03:00
parent e78c5b1576
commit 344ba31842
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63
1 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,9 @@ const zmq = require('zeromq');
spawn(
'minode', ['--request-queue', 'tcp://127.0.0.1:5566'],
{timeout: 100000, killSignal: 'SIGTERM'}
).stderr.on('data', (data) => {
console.log(`${data}`);
{timeout: 100000, killSignal: 'SIGTERM', detached: true, stdio: 'inherit'}
).on('exit', (c, s) => {
sock.close();
});
const sender = Address.fromRandom(),