pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/46673: time/p5-Time-HiRes: "usleep( 1000000 )" does not sleep on NetBSD



The following reply was made to PR pkg/46673; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/46673: time/p5-Time-HiRes: "usleep( 1000000 )" does not
 sleep on NetBSD
Date: Mon, 9 Jul 2012 07:30:56 +0200

 On Mon, Jul 09, 2012 at 12:40:03AM +0000, Michai Ramakers wrote:
 > The following reply was made to PR pkg/46673; it has been noted by GNATS.
 > 
 > From: Michai Ramakers <m.ramakers%gmail.com@localhost>
 > To: gnats-bugs%netbsd.org@localhost
 > Cc: 
 > Subject: Re: pkg/46673: time/p5-Time-HiRes: "usleep( 1000000 )" does not 
 > sleep
 >  on NetBSD
 > Date: Mon, 9 Jul 2012 02:39:02 +0200
 > 
 >  Hello,
 >  
 >  >  On Sun, Jul 08, 2012 at 04:45:00PM +0000, m.ramakers%gmail.com@localhost 
 > wrote:
 >  >  > ...it seems to me  there is an off-by-one error in the check at line 
 > 795 for systems that provide usleep(); the check should be for 
 > greater-or-equal than, instead of greater-than.
 >  >
 >  >  Great analysis. I've fixed it in pkgsrc, can you please report this 
 > upstream?
 >  
 >  thx, and thx a lot for fixing this so fast! I've reported this error
 >  at rt.cpan.org as https://rt.cpan.org/Public/Bug/Display.html?id=78266
 
 Please note that using nanosleep(2) when present is clearly superior.
 
 Joerg
 


Home | Main Index | Thread Index | Old Index