Simplify the spawn handler and close the socket
All checks were successful
buildbot/multibuild_parent Build done.
buildbot/travis_bionic Build done.

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

View File

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