perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject Re: t/SMOKE on win32
Date Wed, 01 Oct 2003 17:53:22 GMT
Barrie Slaymaker wrote:
> On Tue, 2003-09-30 at 17:12, Stas Bekman wrote:
>>>The major non-feature is that you can't have a coprocess; the parent
>>>blocks while the child runs.
>>You mean if you spawn a child from a process spawned by IPC::Run3?
> When you spawn a child from the parent, the parent blocks.  So in
>     use IPC::Run3 qw( run3 );
>     my @cmd = qw( );
>     run3 \@cmd, \$in, \$out, \$err;
> , the call to run3() does not return until exits and if
> you use CODE refs (instead of SCALAR refs) for redirecting
>'s console I/O, they won't be called until
> exit()s.  So you can't interact
> This differs from IPC::Run::run() where you can use CODE refs for
> stdout/stderr redirection and interact with the child process by having
> your stdout/stderr handlers feed input back in to the child process via
> its stdin.

Since we use just a plan SCALAR ref I think it'll work for us.

BTW, the IPC::Run3 manpage doesn't mention that you can pass CODE refs for I/O 

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message