You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError: Forked processes must have an IPC channel #8167
Thanks. Would it be useful to update these docs to emphasize that? (right now the docs seem to imply that [0,1,2] is a valid setting, and that ipc is optional. Or maybe that's just me :)
why the ipc fd is only required in fork? not in spawn?
what's the fundamental difference between fork and spawn? isn't fork a specific type of spawn where process name is slated to node?
Reacted by Mohamed Lamine Allal, Adrien Becchis, Barrie Treloar, Simon and Frank
Activity
cjihrig commentedon Aug 18, 2016
fork()didn't support astdiooption before. Now it does.sandro-pasquali commentedon Aug 18, 2016
Thanks. Would it be useful to update these docs to emphasize that? (right now the docs seem to imply that
[0,1,2]is a valid setting, and thatipcis optional. Or maybe that's just me :)https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio
cjihrig commentedon Aug 18, 2016
We don't currently have a good way to mark when things like that change the way that we do when a new method is added. However, I agree that it would be good to update the
stdiosection of https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_child_process_fork_modulepath_args_options to say that an'ipc'entry is required. Note, the docs you linked to probably aren't the ideal place to say that, since this isfork()specific.cjihrig commentedon Aug 18, 2016
You might want to use https://nodejs.org/api/cluster.html#cluster_cluster_settings as a reference if you plan to make a PR.
doc: document that `'ipc'` is required with fork stdio option
doc: `'ipc'` is required with fork stdio option
doc: `'ipc'` is required with fork stdio option
bchenSyd commentedon Apr 12, 2018
why the
ipcfd is only required infork? not inspawn?what's the fundamental difference between
forkandspawn? isn'tforka specific type ofspawnwhere process name is slated tonode?doc: `'ipc'` is required with fork stdio option