summaryrefslogtreecommitdiff
path: root/lib/Net/Ping.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Net/Ping.pm')
-rw-r--r--lib/Net/Ping.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Net/Ping.pm b/lib/Net/Ping.pm
index 5ab3508a64..e74f6684df 100644
--- a/lib/Net/Ping.pm
+++ b/lib/Net/Ping.pm
@@ -353,7 +353,7 @@ sub ping_tcp_win32
# Wait for the child to return or for the timeout to expire.
do {
- $child = waitpid($pid, &WNOHANG);
+ $child = waitpid($pid, WNOHANG);
$ret = $?;
} until time > ($time + $timeout) or $child;