"Matthew Braid" <[EMAIL PROTECTED]> writes:
>
> opened with IPC::Open2

I've been using Proc::SyncExec because it's got good exec error
reporting.  Doesn't look like Open2/Open3 has that, you'd think they
probably should.

> I was trying to figure out why the filehandle wasn't being picked up
> as 'still readable'

Sounds like it should be right, if nobody else is doing a buffered read.
You could try you own select() in the io handler to see how it looks at
the point you would go back to the main loop.  Myself I've been using a
non-blocking pipe or socketpair and reading in the handler until
EWOULDBLOCK.

> use Fcntl;
> fcntl($FROM_CHILD, F_SETFL, fcntl($FROM_CHILD, F_GETFL, 0) | O_NONBLOCK);

"MYHANDLE->blocking(0)" might be easier (after loading IO::Handle or
whatever package it is that slips in that method).
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to