GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
AnyEvent::Subprocess::Done(3) User Contributed Perl Documentation AnyEvent::Subprocess::Done(3)

AnyEvent::Subprocess::Done - represents a completed subprocess run

version 1.102912

We 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;

An instance of this class is returned to your "on_completion" callback when the child process exists.

Returns the delegate named $name.

$? from waitpid on the child. Parsed into the various fields below:

The value the child supplied to "exit". (0 if ""exit 0"", etc.)

The signal number the child was killed by, if any.

True if the child dumped core.

True 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.

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.

2011-02-25 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.