-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.macosIssues and PRs related to the macOS platform / OSX.Issues and PRs related to the macOS platform / OSX.
Description
The following snippet of code prints the child process' output if detached is true, and doesn't if it's false:
cmd = '...'
child_process.spawn(cmd, [], {
stdio: 'inherit',
detached: true
});
This part of the docs seems relevant:
If the parent's stdio is inherited, the child will remain attached to the controlling terminal.
Which seems to imply that inheriting these streams is supported. Not sure if this is just me misreading the docs or...
fleg and aoberoi
Metadata
Metadata
Assignees
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.macosIssues and PRs related to the macOS platform / OSX.Issues and PRs related to the macOS platform / OSX.