Skip Menu |
Report information
Id: 133376
Status: resolved
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: me [at] xenu.pl
Cc:
AdminCc:

Operating System: (no value)
PatchStatus: (no value)
Severity: low
Type: unknown
Perl Version: (no value)
Fixed In: (no value)

Attachments


Date: Sun, 15 Jul 2018 02:50:53 +0200
Subject: [PATCH] win32: sleep() warns and it doesn't really sleep forever
From: Tomasz Konojacki <me [...] xenu.pl>
To: perlbug [...] perl.org
Download (untitled) / with headers
text/plain 325b
Under windows, sleep() called with no arguments triggers the following warning: Show quoted text
>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.
From: Tomasz Konojacki <me [...] xenu.pl>
Subject: Re: [perl #133376] [PATCH] win32: sleep() warns and it doesn't really sleep forever
Date: Sun, 15 Jul 2018 02:58:47 +0200
To: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 703b
On Sat, 14 Jul 2018 17:51:02 -0700 "Tomasz Konojacki \(via RT\)" <perlbug-followup@perl.org> wrote: Show quoted text
> # 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.

Message body is not shown because sender requested not to inline it.

RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 869b
On Sat, 14 Jul 2018 17:58:58 -0700, me@xenu.pl wrote: Show quoted text
> 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
Download (untitled) / with headers
text/plain 313b
Thank you for filing this report. You have helped make Perl better. With the release today of Perl 5.30.0, this and 160 other issues have been resolved. Perl 5.30.0 may be downloaded via: https://metacpan.org/release/XSAWYERX/perl-5.30.0 If you find that the problem persists, feel free to reopen this ticket.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org