Skip to content

Commit a5b6150

Browse files
committed
Document how Luv sets UV_IGNORE
See #63. [skip ci]
1 parent cb23962 commit a5b6150

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/process.mli

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ val spawn :
106106
[~term_signal] is set by {!Luv.Process.kill}, i.e. it is emulated by libuv.
107107
The operating system separately reports [~exit_status], so it is always
108108
valid. If there is an error retrieving [~exit_status] from the OS, it is set
109-
to a negative value. *)
109+
to a negative value.
110+
111+
Redirections for STDIN, STDOUT, STDERR that are not specified are set by Luv
112+
to [UV_IGNORE]. This causes libuv to open new file descriptors for the child
113+
process, and redirect them to [/dev/null] or [nul]. *)
110114

111115
val disable_stdio_inheritance : unit -> unit
112116
(** Disables (tries) file descriptor inheritance for inherited descriptors.

0 commit comments

Comments
 (0)