This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Ping Re: [PATCH] Make bindresvport() function to multithread-safe
- From: Carlos O'Donell <carlos_odonell at mentor dot com>
- To: Peng Haitao <penght at cn dot fujitsu dot com>
- Cc: Roland McGrath <roland at hack dot frob dot com>, <libc-alpha at sourceware dot org>
- Date: Mon, 17 Sep 2012 16:55:28 -0400
- Subject: Re: Ping Re: [PATCH] Make bindresvport() function to multithread-safe
- References: <4F3DED0D.7050504@cn.fujitsu.com> <5051764D.9070908@cn.fujitsu.com> <20120917194421.8FCD02C053@topped-with-meat.com>
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