Closed jonatino closed 3 years ago
There is no way in the current API to do that. I guess an option could be added to https://github.com/sheredom/subprocess.h/blob/master/subprocess.h#L58 to facilitate it, but for now you'd have to do what you say.
I've looked into this - its not something that is easy to do (especially on Windows).
I have the following go code that I'm converting to c++
I was wondering is there any way to redirect the stdout of my child process to share the same one as its parent process? Or will I just need to make another thread that loops/polls for stdout messages? I tried looking through the tests you have on here but couldn't find any similar use case.
PS. Your library is awesome.