AnyEvent::Subprocess::Running - represents a running subprocess
version 1.102912
We are $run in a sequence like:
$run
my $job = AnyEvent::Subprocess->new ( ... ); my $run = $job->run; $run->delegate('stdin')->push_write('Hello, my child!'); say "Running child as ", $run->child_pid; $run->kill(11) if $you_enjoy_that_sort_of_thing; my $done = $job->delegate('completion_condvar')->recv; say "Child exited with signal ", $done->exit_signal;
An instance of this class is returned when you start a subprocess. It contains the child pid, any delegates that operate on the running subprocess (handles, captures, etc.), and some control methods.
Returns the pid of the child
Kills the child with signal number $signal
$signal
Returns the delegate named $name
$name
AnyEvent::Subprocess
AnyEvent::Subprocess::Role::WithDelegates
Jonathan Rockway <jrockway@cpan.org>
This software is copyright (c) 2011 by Jonathan Rockway.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install AnyEvent::Subprocess, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::Subprocess
CPAN shell
perl -MCPAN -e shell install AnyEvent::Subprocess
For more information on module installation, please visit the detailed CPAN module installation guide.