From 41789a14fa36117fcb15776f5f3160591e7773cb Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Fri, 17 Aug 2007 20:29:10 -0500 Subject: fixme --- lib/IO/Pty/Easy.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/IO/Pty/Easy.pm b/lib/IO/Pty/Easy.pm index 590b3ec..c566079 100644 --- a/lib/IO/Pty/Easy.pm +++ b/lib/IO/Pty/Easy.pm @@ -161,6 +161,8 @@ sub spawn { my $errno; my $read_bytes = sysread($readp, $errno, 256); unless (defined $read_bytes) { + # XXX: should alarm here and follow up with SIGKILL if the process + # refuses to die kill TERM => $self->{pid}; close $readp; $self->_wait_for_inactive; -- cgit v1.2.3-54-g00ecf