aaron@...749... wrote:
Jasper van de Gronde wrote:
On win32 you can connect STDERR to a pipe if you're using CreateProcess (which at least the code in src/extension/implementation/script.cpp currently does). The relevant member of the STARTUPINFO struct is hStdError, as far as I know it can be set to the same handle as hStdOut (which has the disadvantage of possibly making it harder to separate error messages from normal output) as well as a different handle (which would make getting results from the program harder).
The second option (different handle) sounds to me like what should happen. Why do you say that makes it harder to get results from the program?
As there would then be two streams that would need to be read (unless there is some simplifying circumstance).