MCPcopy Index your code
hub / github.com/nodejs/node / _forkChild

Function _forkChild

lib/child_process.js:177–189  ·  view source on GitHub ↗
(fd, serializationMode)

Source from the content-addressed store, hash-verified

175}
176
177function _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
191function normalizeExecArgs(command, options, callback) {
192 validateString(command, 'command');

Callers

nothing calls this directly

Calls 6

setupChannelFunction · 0.85
refCountedMethod · 0.80
unrefCountedMethod · 0.80
openMethod · 0.65
unrefMethod · 0.45
onMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…