diff options
-rw-r--r-- | lib/IO/Pty/Easy.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IO/Pty/Easy.pm b/lib/IO/Pty/Easy.pm index d02bbad..fdef28f 100644 --- a/lib/IO/Pty/Easy.pm +++ b/lib/IO/Pty/Easy.pm @@ -255,7 +255,7 @@ sub is_active { return 0 unless defined $self->{pid}; my $active = kill 0 => $self->{pid}; if ($active) { - my $pid = waitpid($self->{pid}, POSIX::WNOHANG); + my $pid = waitpid($self->{pid}, POSIX::WNOHANG()); $active = 0 if $pid == $self->{pid}; } if (!$active) { |