in reply to IPC::Run and start(); pump(); finish()
However, I'm not sure how (or if) I can do the same thing from my script...im afraid i may have to modify the module itself, and even then im not totally sure what to do.sub signal { my IPC::Run $self = shift ; local $cur_self = $self ; $self->_kill_kill_kill_pussycat_kill unless @_ ; Carp::cluck "Ignoring extra parameters passed to kill()" if @_ > 1 +; my ( $signal ) = @_ ; croak "Undefined signal passed to signal" unless defined $signal ; for ( grep $_->{PID} && ! defined $_->{RESULT}, @{$self->{KIDS}} ) +{ _debug "sending $signal to $_->{PID}" if _debugging; kill $signal, $_->{PID} or _debugging && _debug "$! sending $signal to $_->{PID}" ; } return ; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: IPC::Run and start(); pump(); finish()
by BrowserUk (Patriarch) on Nov 14, 2005 at 17:27 UTC |