Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
AnyEvent::Subprocess::UseriContributed Perl DoAnyEvent::Subprocess::Running(3)

NAME
       AnyEvent::Subprocess::Running - represents a running subprocess

VERSION
       version 1.102912

SYNOPSIS
       We are $run 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;

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

METHODS
   child_pid
       Returns the pid of the child

   kill($signal)
       Kills the child with signal number $signal

   delegate($name)
       Returns the delegate named $name

SEE ALSO
       AnyEvent::Subprocess

       AnyEvent::Subprocess::Role::WithDelegates

AUTHOR
       Jonathan	Rockway	<jrockway@cpan.org>

COPYRIGHT AND LICENSE
       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.

perl v5.32.0			  2011-02-25  AnyEvent::Subprocess::Running(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | METHODS | SEE ALSO | AUTHOR | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=AnyEvent::Subprocess::Running&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help