in reply to Re^2: Diagnosing blocking io (or: finding the WHY of my Open2 woes).
in thread Diagnosing blocking io (or: finding the WHY of my Open2 woes).
Actually, on second thought, your problem might rather be that the subprocess' output buffer is filling up... so it stops processing anything (i.e. hangs/waits) before you get a chance to read/emtpy the buffer (as you're doing the reading after the writing). Just another hypothesis, though :)
How much output would you expect when things don't work?
As to diagnosing what's going on, strace would probably be a good tool.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Diagnosing blocking io (or: finding the WHY of my Open2 woes).
by Socrates (Acolyte) on Nov 18, 2008 at 22:57 UTC |