Hm. You want to spawn a thread, execute an external process from within that thread and then leave that thread doing nothing whilst your main thread reads from the process. And once the external process finishes, have the thread terminate.
Why? Why complicate things by having the thread start the process and then do nothing, if you want the main thread to read the data? Forget the thread, it is achieving nothing but complication. Just run the external process from the main thread in any of the normal ways backticks, piped open IPC::open.
In reply to Re: How to share streams between processes
by BrowserUk
in thread How to share streams between processes
by rapide
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |