Module Async_unix.Process.Output

collect_output_and_wait t closes stdin t and then begins collecting the output produced on t's stdout and stderr, continuing to collect output until t terminates and the pipes for stdout and stderr are closed. Usually when t terminates, the pipes are closed; however, t could fork other processes which survive after t terminates and in turn keep the pipes open -- wait will not become determined until both pipes are closed in all descendant processes.

type t = {
stdout : string;
stderr : string;
exit_status : Core.Unix.Exit_or_signal.t;
}
include sig ... end
val compare : t ‑> t ‑> int
val sexp_of_t : t ‑> Sexplib.Sexp.t
module Stable : sig ... end