Open MayamaTakeshi opened 6 months ago
Also, we might need to force the external process to terminate if our script dies:
const { spawn } = require('child_process');
const externalProcess = spawn('external_program', ['arg1', 'arg2']);
// Handle Node.js process exit
process.on('exit', () => {
// Kill the spawned process when the Node.js process exits
externalProcess.kill();
});
Regarding #41 and #54, I think it is not worthy to spend time with them.
Instead I think we should build different versions of the app based on architecture, keep statically linking all libs that we need and add some code in index.js to spawn sip-lab as an external process and communicate with it: