develooper Front page | perl.perl5.porters | Postings from July 2018

Re: [perl #133376] [PATCH] win32: sleep() warns and it doesn'treally sleep forever

Thread Previous
From:
Tomasz Konojacki
Date:
July 15, 2018 00:58
Subject:
Re: [perl #133376] [PATCH] win32: sleep() warns and it doesn'treally sleep forever
Message ID:
20180715025845.9643.5C4F47F8@xenu.pl
On Sat, 14 Jul 2018 17:51:02 -0700
"Tomasz Konojacki \(via RT\)" <perlbug-followup@perl.org> wrote:

> # New Ticket Created by  Tomasz Konojacki 
> # Please include the string:  [perl #133376]
> # in the subject line of all future correspondence about this issue. 
> # <URL: https://rt.perl.org/Ticket/Display.html?id=133376 >
> 
> 
> Under windows, sleep() called with no arguments triggers the following
> warning: 
> 
> >perl -Mwarnings -E "sleep"
> sleep(2147450879) too large at -e line 1.
> 
> Additionally, it sleeps for just 4262198 seconds (~50 days) instead of
> forever.
> 
> I have implemented win32_pause() which will fix the above problems, the
> patch will follow.

The patch is attached.
Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About