in reply to Diagnosing blocking io (or: finding the WHY of my Open2 woes).
My suspicion is (though I haven't verified (because I don't have 'js' here)) that the subprocess (js) is using block buffering for its output when being run non-interactively... in which case your readline might hang waiting for an end-of-line.
Unless you have control over the source of the subprocess to change such buffering behaviour, you're essentially out of luck.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Diagnosing blocking io (or: finding the WHY of my Open2 woes).
by Fletch (Bishop) on Nov 18, 2008 at 22:44 UTC | |
by Socrates (Acolyte) on Nov 18, 2008 at 22:50 UTC | |
|
Re^2: Diagnosing blocking io (or: finding the WHY of my Open2 woes).
by Socrates (Acolyte) on Nov 18, 2008 at 22:49 UTC | |
by almut (Canon) on Nov 18, 2008 at 22:54 UTC | |
by Socrates (Acolyte) on Nov 18, 2008 at 22:57 UTC | |
|
Re^2: Diagnosing blocking io (or: finding the WHY of my Open2 woes). (fix libc)
by tye (Sage) on Nov 19, 2008 at 01:11 UTC |