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

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

Thread Next
From:
Tomasz Konojacki
Date:
July 15, 2018 00:51
Subject:
[perl #133376] [PATCH] win32: sleep() warns and it doesn't reallysleep forever
Message ID:
rt-4.0.24-9040-1531615862-426.133376-75-0@perl.org
# 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.


Thread Next


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