Skip to content

Commit

Permalink
adjust docs
Browse files Browse the repository at this point in the history
  • Loading branch information
flysand7 committed Sep 28, 2024
1 parent d830069 commit 0e446e1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions core/os/os2/process.odin
Original file line number Diff line number Diff line change
Expand Up @@ -357,15 +357,12 @@ the process is running, this procedure accumulates the output of its stdout
and stderr streams and returns byte slices containing the captured data from
the streams.
Use this function when the target process doesn't require any input from stdin,
in order to complete.
This procedure expects that `stdout` and `stderr` fields of the `desc` parameter
are left at default, i.e. a `nil` value. You can not capture stdout/stderr and
redirect it to a file at the same time.
This procedure does not free `stdout` and `stderr` slices before an error is
returned. Make sure to call `delete` on these slices.
This procedure is not thread-safe. It may alter the inheritance properties
of file handles in an unpredictable manner. In case multiple threads change
handle inheritance properties, make sure to serialize all those calls.
*/
@(require_results)
process_exec :: proc(
Expand Down

0 comments on commit 0e446e1

Please sign in to comment.