Re: [Varnish] #475: usleep() does not handle errors correctly (values > 1,000,000 aren’t allowed on NetBSD)

Varnish varnish-bugs at projects.linpro.no
Mon Mar 23 15:51:26 CET 2009


#475: usleep() does not handle errors correctly (values > 1,000,000 aren’t
allowed on NetBSD)
----------------------+-----------------------------------------------------
 Reporter:  michael   |        Owner:  phk                
     Type:  defect    |       Status:  closed             
 Priority:  high      |    Milestone:  Varnish 2.1 release
Component:  varnishd  |      Version:  trunk              
 Severity:  normal    |   Resolution:  fixed              
 Keywords:  NetBSD    |  
----------------------+-----------------------------------------------------
Comment (by tfheen):

 (In [3999]) Merge r3979: Use TIM_sleep() instead of usleep()

 Use TIM_sleep() instead of usleep() where duration might be longer than
 the one second Open Group allows.

 Fixes #475

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/475#comment:2>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list