![]() |
![]()
| ![]() |
![]()
NAMEAnyEvent::Subprocess::Done - represents a completed subprocess run VERSIONversion 1.102912 SYNOPSISWe are $done in a sequence like: 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; say "Child produced some stdout: ", $done->delegate('stdout_capture')->output; DESCRIPTIONAn instance of this class is returned to your "on_completion" callback when the child process exists. METHODSdelegate( $name )Returns the delegate named $name. exit_status$? from waitpid on the child. Parsed into the various fields below: exit_valueThe value the child supplied to "exit". (0 if ""exit 0"", etc.) exit_signalThe signal number the child was killed by, if any. dumped_coreTrue if the child dumped core. is_successTrue if the exit_status is 0. If this is false, your process dumped core, exited due to a signal, or exited with a value other than 0. SEE ALSOAnyEvent::Subprocess AnyEvent::Subprocess::Role::WithDelegates AUTHORJonathan Rockway <jrockway@cpan.org> COPYRIGHT AND LICENSEThis 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.
|