Re: my ArkHost.run() woes -- fork/dup/pipe/etc bite back

Unknown <[email protected]>
Newsgroups gmane.comp.sysutils.ark.devel
Message-ID <[email protected]>
Jonathan asks:

> You don't say what the problems are, but could it be anything to do with 
> the lack of a tty?

Could do, esp on the sudo case... What kinda surprised me
was that the Popen3 stuff behaved so differently from boring
old popen, which has given no trouble.

On the ersh case, I'm wondering if it has anything to do
with how ersh "bypasses" stdout through fd 3... Quite a lot
of these popen-ish things seem to want to close all
non-{0,1,2} fds.

One specific symptom I was seeing with "your" runCmd was
select saying the child's stdin wanted something, then the
os.write failing with a "pipe closed" exception.

All too weird for me :-)

Will
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.