[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mason
Subject:    Re: [Mason] Mason-IPC-Run Test Problems
From:       Barrie Slaymaker <barries () slaysys ! com>
Date:       2005-04-22 1:31:51
Message-ID: 20050422013150.GA32156 () slaysys ! com
[Download RAW message or body]

On Thu, Apr 21, 2005 at 03:14:14PM -0700, Joseph Thames wrote:
> >sub pids {
> >   my $self = shift;
> >   return map $_->{PID}, @{$self->{KIDS}};
> >}
> >
> When I put this accessor in my wrapper code and call it like so:
> 
> $h = start (
> \@command, \$in, \$out, \$err, ($tm = timeout(30))
> );
> 
> $pid =${&pids($h)}[0];
> logsay "CPID = $pid";
> 
> It should work, yes?

No.  Try something like:

     $pid = (pids($h))[0];

And even then, I'm going from memory :).

> It doesn't. Could it be that @{$self->{KIDS}} isn't populated when you 
> use the non-succint (start, pump, finish) form? BTW, I am using version 
> 0.78. I couldn't get 0.79 to install because of the Resource temporarily 
> unavailable: write( ... error that causes test #70 to fail.

That test is new and it does fail; 0.79 is better than 0.78 in other
ways, it's not worse than 0.78 in that way.

Thanks for the compliments.

- Barrie


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic