From f3f64ba34c7c00b82c21d0a61f4b854750f59c98 Mon Sep 17 00:00:00 2001 From: doy Date: Tue, 3 Feb 2009 20:04:02 -0500 Subject: don't reset SIGWINCH if we didn't set it in the first place --- lib/IO/Pty/Easy.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IO/Pty/Easy.pm b/lib/IO/Pty/Easy.pm index 24f0fa6..f3b1eec 100644 --- a/lib/IO/Pty/Easy.pm +++ b/lib/IO/Pty/Easy.pm @@ -256,8 +256,8 @@ sub is_active { return 0 unless defined $self->{pid}; my $active = kill 0 => $self->{pid}; if (!$active) { + $SIG{WINCH} = 'DEFAULT' if $self->{handle_pty_size}; delete $self->{pid}; - $SIG{WINCH} = 'DEFAULT'; } return $active; } -- cgit v1.2.3-54-g00ecf