Ping Re: [PATCH] Make bindresvport() function to multithread-safe

Carlos O'Donell carlos_odonell@mentor.com
Mon Sep 17 20:55:00 GMT 2012


On 9/17/2012 3:44 PM, Roland McGrath wrote:
> bindresvport has never been thread-safe before and AFAIK no other system
> that has the function makes it thread-safe.  Like all functions, if it's
> not specifically documented and being thread-safe, it isn't.  I don't see
> the rationale for requiring bindresvport to be thread-safe now.
> 

I agree. If there is no known implementation that requires it to be thread-safe
then we should not either. It slows down applications that properly ensure
that only one thread uses bindresvport.

Cheers,
Carlos.
-- 
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos_odonell@mentor.com
carlos@codesourcery.com
+1 (613) 963 1026



More information about the Libc-alpha mailing list