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