From b7a00bad06e7c3b48335f127d684c4edab09de87 Mon Sep 17 00:00:00 2001 From: Noah Misch Date: Fri, 1 Mar 2024 16:59:14 -0800 Subject: [PATCH] no backoff for win32 --- lib/IPC/Run.pm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/IPC/Run.pm b/lib/IPC/Run.pm index ff9b000..e2e0698 100644 --- a/lib/IPC/Run.pm +++ b/lib/IPC/Run.pm @@ -3073,8 +3073,10 @@ sub _select_loop { ## lingering, so we need to poll them with a short timeout. ## Otherwise, assume more input will be coming. $timeout = $not_forever; - $not_forever *= 2; - $not_forever = 0.5 if $not_forever >= 0.5; + unless (Win32_MODE) { + $not_forever *= 2; + $not_forever = 0.5 if $not_forever >= 0.5; + } } ## Make sure we don't block forever in select() because inputs are @@ -3091,8 +3093,10 @@ sub _select_loop { ## Otherwise, assume more input will be coming. $timeout = $not_forever; - $not_forever *= 2; - $not_forever = 0.5 if $not_forever >= 0.5; + unless (Win32_MODE) { + $not_forever *= 2; + $not_forever = 0.5 if $not_forever >= 0.5; + } } _debug 'timeout=', defined $timeout ? $timeout : 'forever'