stcarrez / ada-util

Ada Utility Library - Composing streams, processes, logs, serialization, encoders and more
Apache License 2.0
69 stars 14 forks source link

Allow to read stdout and stderr as separate streams when spawning a process #38

Closed stcarrez closed 1 year ago

stcarrez commented 1 year ago

The Util.Processses package allows to spawn a process and read the standard output and error but the current mode merges the standard output and error together (the spawned process still gets a separate standard output and standard error file descriptors).

In some situations, we don't want such merge and must be able to distinguish and read the standard output and standard error produced by the launched process as separate streams.