On Mon, Jun 17, 2024 at 11:39 PM Robert Engels <reng...@ix.netcom.com>
wrote:

> Nothing is writing and closing StdInR so it will never complete.
>

I may have this wrong, but isn't io.Copy writing to cmdStdinW and therefore
to cmdStdinR?

As for the closing... that's the point. I only want to close cmdStdinR in
response to something from cmdStdoutW, whether it is because the command
was killed, it exited cleanly, or it output something I'm looking for.

The question is: how can I get notified that the command exited so that I
can close its stdin?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAEQs7S8uZVz0rFO0XgRLROtShrCHGC3qSxQc2QVgyJGVVQA1VQ%40mail.gmail.com.

Reply via email to