portable IPC::Run (was: "Re: select()/poll() on Win32: ...")

[email protected] ("Rocco Caputo")
Newsgroups perl.perl5.porters,perl.loop
Message-ID <[email protected]>
On Mon, 29 Jan 2001 22:56:23 -0500, barries wrote:
>
>In fact, I would be happy to port IPC::Run to Event or POE were either
>cross platform wrt events on filehandles of all stripes and timers.  I
>gave some thought to doing that anyway (see archives for spoor) and
>there's been no demand from anyone for it, so never bothered.

There's a real need for event-driven IPC::Run.  In response to
requests, I added something similar to POE 0.1203 at the end of
December.

My work-around for not being able to select() pipes on Win32 was a
byproduct of writing portable pipe classes.  The classes try pipe(),
socketpair() and finally fall back to IO::Socket::INET.  The last
option makes conduits that seem to work fine with select() on
MSWin32.  I have no idea how well (or if) the fork/exec parts work,
though.  For that matter, what about SIGCHLD?

POE::Pipe::OneWay and ::TwoWay will work without the rest of the
library, and they make plain old filehandles via Symbol::gensym().
Maybe they should be split out into a separate distribution?

-- Rocco Caputo / [email protected] / poe.perl.org / poe.sourceforge.net
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.