summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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;
}