This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v4] Make bindresvport() function to multithread-safe
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- 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, 19 Nov 2012 01:57:59 -0500
- Subject: Re: [PATCH v4] Make bindresvport() function to multithread-safe
- References: <1348823725-18793-1-git-send-email-penght@cn.fujitsu.com><CAE2sS1hJLkePJXMw8wCXQ48einUnvjPSbjX11LMzCVvT3i3zZg@mail.gmail.com><507D29FF.2010605@cn.fujitsu.com><20121016172655.GS254@brightrain.aerifal.cx><CAE2sS1icTvn=5AisNDBdRqPCVn7x9dOmSSVY-6VXuu9WLQCv2g@mail.gmail.com><20121018195803.GG254@brightrain.aerifal.cx><CAE2sS1i75S8XRuGfLegoPBFvzgYErzPS63NqebzgoMXFNy6waw@mail.gmail.com><20121025173944.GO254@brightrain.aerifal.cx><CAE2sS1iNA1G8_UKAuR3=R5iUJ7x01FmMj3hyJtNYKh-=Sxiamw@mail.gmail.com><20121025193403.D12AD2C092@topped-with-meat.com><CAE2sS1je=1EucG1zef4UyVR8jonEwkLThO=A45wAf_V38P9p7w@mail.gmail.com><20121025194613.1B8F12C08D@topped-with-meat.com><5090C8C0.8060302@cn.fujitsu.com>
On Wed, Oct 31, 2012 at 2:44 AM, Peng Haitao <penght@cn.fujitsu.com> wrote:
> On 10/26/2012 03:46 AM, Roland McGrath wrote:
>> I think it's acceptable to add a lock using the libc-lock.h primitives.
>>
>
> The V2 patch uses __libc_lock_lock(NAME) in bits/libc-lock.h,
> It is OK?
>
> V2 patch: http://sourceware.org/ml/libc-alpha/2012-09/msg00507.html
Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
No regressions on x86-64.
Checked in.
Cheers,
Carlos.