ctrl-c gives a INT signal which is captured by the sub below. When the
ctrl-c is captured, the code will kill the job with signal TERM, this should
generate a SIGCHLD and make the wheel to exit, not in the state of
zombie.
sub read_from {
my ($input, $exception) = @_[ARG0, ARG1];
my
);
$job $job-kill();
return;
}
$_[HEAP]-{stdin}-put(got: $input);
$_[HEAP]-{job}-put($input);
}
2009/9/26 Olivier Mengué olivier.men...@gmail.com
2009/9/25 woosley. xu. redic...@gmail.com
besides, if you write the interactive code like this:
my $user = STDIN
type by mistake
corrected, but still don't solve the problem.
2009/9/27 Nick Perez n...@nickandperla.net
On Sun, 27 Sep 2009 10:59:48 +0800
woosley. xu. redic...@gmail.com wrote:
$_[KERNEL]-sig_child($pid, got_child_signal);
This is your problem line. Remove '$pid,' from the double
hi all, I want to run a interactive command using POE::Wheel, I met some
problem.
Here is my code:
###main.pl
use POE qw( Wheel::Run );
POE::Session-create(
inline_states = {
_start = \on_start,
got_child_stdout = \on_child_stdout,
got_child_stderr =
-- Forwarded message --
From: woosley. xu. redic...@gmail.com
Date: 2009/9/25
Subject: Re: run an interactive command using POE::Wheel?
To: Andreas Altergott alterg...@mira-consulting.net
Hi, Andreas,
Thanks for your reply.
I found if I changed the my code