()
| 63 | |
| 64 | // using a net socket |
| 65 | function child2() { |
| 66 | const net = require('net'); |
| 67 | const socket = new net.Socket({ |
| 68 | fd: 2, |
| 69 | readable: false, |
| 70 | writable: true, |
| 71 | }); |
| 72 | socket.write('child 2\n'); |
| 73 | socket.write('foo\n'); |
| 74 | socket.write('bar\n'); |
| 75 | socket.write('baz\n'); |
| 76 | } |
| 77 | |
| 78 | |
| 79 | function child3() { |