Skip Menu |

This queue is for tickets about the IO-Async CPAN distribution.

Report information
The Basics
Id: 78477
Status: new
Priority: 0/
Queue: IO-Async

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.52
Fixed in: (no value)



Subject: Can't easily use IaProcess streams as Protocol transports
This seems reasonable: my $child = IO::Async::Process->new( command => $command, stdio => { via => 'pipe_rdwr' }, on_finish => sub { print STDERR "Child exited unexpectedly\n"; }, ); $self->configure( transport => $child->stdio, ); $self->add_child( $child ); However it fails: Cannot add a child that already has a parent at /home/leo/lib/perl5/IO/Async/Loop.pm line 324 because the underlying IaStream wants to be a child both of the Process and of the Protocol. Oops. -- Paul Evans