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(
'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(),