Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,12 @@ pipes between the parent and child. The value is one of the following:
as it may result in undefined behavior or dropped callbacks if the stream
encounters errors. Always ensure that `stdin` is used as readable and
`stdout`/`stderr` as writable to maintain the intended flow of data between
the parent and child processes.
the parent and child processes. The stream passed in the `stdin` position
is the source from which the child process reads its input, and the
streams in the `stdout`/`stderr` positions receive the output the child
writes. This is the opposite of [`subprocess.stdin`][] (writable) and
[`subprocess.stdout`][] (readable), which are the parent's ends of the
pipes created by `'pipe'`.
7. Positive integer: The integer value is interpreted as a file descriptor
that is open in the parent process. It is shared with the child
process, similar to how {Stream} objects can be shared. Passing sockets
Expand Down
Loading