diff options
Diffstat (limited to 'docs/src/guide/processes.rst')
-rw-r--r-- | docs/src/guide/processes.rst | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/docs/src/guide/processes.rst b/docs/src/guide/processes.rst index 19ce0572..ec3a7efc 100644 --- a/docs/src/guide/processes.rst +++ b/docs/src/guide/processes.rst @@ -181,8 +181,16 @@ The file descriptors of the child process are set using the ``stdio`` field in file descriptors being set. ``uv_process_options_t.stdio`` is an array of ``uv_stdio_container_t``, which is: -.. literalinclude:: ../../../include/uv.h - :lines: 826-834 +.. code-block:: c + + typedef struct uv_stdio_container_s { + uv_stdio_flags flags; + + union { + uv_stream_t* stream; + int fd; + } data; + } uv_stdio_container_t; where flags can have several values. Use ``UV_IGNORE`` if it isn't going to be used. If the first three ``stdio`` fields are marked as ``UV_IGNORE`` they'll |