summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2009-02-03 20:04:02 -0500
committerdoy <doy@tozt.net>2009-02-03 20:04:02 -0500
commitf3f64ba34c7c00b82c21d0a61f4b854750f59c98 (patch)
tree35ff968a630574c2d3086b93c332659dcc95a611
parent03b7e4a77350270c8da1b7a60b93dcc55058c319 (diff)
downloadio-pty-easy-f3f64ba34c7c00b82c21d0a61f4b854750f59c98.tar.gz
io-pty-easy-f3f64ba34c7c00b82c21d0a61f4b854750f59c98.zip
don't reset SIGWINCH if we didn't set it in the first place
-rw-r--r--lib/IO/Pty/Easy.pm2
1 files changed, 1 insertions, 1 deletions
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;
}