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

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

From:
Tony Cook via RT
Date:
August 1, 2018 06:48
Subject:
[perl #133376] [PATCH] win32: sleep() warns and it doesn't reallysleep forever
Message ID:
rt-4.0.24-19855-1533106086-1962.133376-15-0@perl.org
On Sat, 14 Jul 2018 17:58:58 -0700, me@xenu.pl wrote:
> 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.

Thanks, applied as bbc9927bf24edbd6398f6decb015f1b9369455a0.

Tony

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=133376



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