GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — IPC between Node <= 10.5.0 and Node 10.6.0 crashes · Issue #21671 · nodejs/node Closed Description
Running Node 10.5.0 to spawn a process with Node 10.6.0 and send IPC messages from the child crashes the parent. Related issue in the Electron repo: electron/electron#13565 Code to reproduce const path = require('path'); const spawn = require('child_process').spawn; const node10_6 = "C:/nvm/v10.6.0/node.exe"; const childPath = path.resolve('./child.js'); const child = spawn(node10_6, [childPath], { stdio: [ 'ignore', 'ignore', 'ignore', 'ipc' ] }); child.on('message', message => { console.log(JSON.stringify(message)); if (message.exit) process.exit(0); }); child.send({ msg: "parent->child" });
process.send({ msg: "child->parent" }); process.on('message', message => { process.send({ msg: `from-parent: ${JSON.stringify(message)}` }); process.send({ exit: true }); }); Result Reacted by Tsvetelina Ivanova, Rosen Vladimirov and Holger Benl Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |