(fd, serializationMode)
| 175 | } |
| 176 | |
| 177 | function _forkChild(fd, serializationMode) { |
| 178 | // set process.send() |
| 179 | const p = new Pipe(PipeConstants.IPC); |
| 180 | p.open(fd); |
| 181 | p.unref(); |
| 182 | const control = setupChannel(process, p, serializationMode); |
| 183 | process.on('newListener', function onNewListener(name) { |
| 184 | if (name === 'message' || name === 'disconnect') control.refCounted(); |
| 185 | }); |
| 186 | process.on('removeListener', function onRemoveListener(name) { |
| 187 | if (name === 'message' || name === 'disconnect') control.unrefCounted(); |
| 188 | }); |
| 189 | } |
| 190 | |
| 191 | function normalizeExecArgs(command, options, callback) { |
| 192 | validateString(command, 'command'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…