Update: Ignore this post. I misunderstood the issue
Buy why is it calling close(0)? And why is it different when it's connected to a terminal? SIGPIPE?
I see three possible solutions:
In reply to Re^3: Calling strace -f
by ikegami
in thread Diagnosing blocking io (or: finding the WHY of my Open2 woes).
by Socrates
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |