Date: Wed, 5 Oct 2011 15:54:00 -0700 From: Artem Belevich <art@freebsd.org> To: =?ISO-8859-1?Q?Dag=2DErling_Sm=F8rgrav?= <des@des.no> Cc: Michael Bushkov <bushman@freebsd.org>, hackers@freebsd.org, =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no> Subject: Re: Does anyone use nscd? Message-ID: <CAFqOu6iTP_cHMoxU4T3buwrx_twEe3_g5rZ-bse8_uNYePv=Sg@mail.gmail.com> In-Reply-To: <86wrcjf767.fsf@ds4.des.no> References: <86sjn84wco.fsf@ds4.des.no> <alpine.BSF.2.00.1110041800290.18373@mail.fig.ol.no> <86obxw4s4w.fsf@ds4.des.no> <CAFqOu6iw12BbvmS9NH3fNzWqQR1YvYrqyM6JFrYDfs2=HQ3w_w@mail.gmail.com> <86fwj84p8i.fsf@ds4.des.no> <CAFqOu6gf9LW2cRHAerTy5d29WN6y8mcWgUHwbKeAEBPXNwVz-w@mail.gmail.com> <CANkaO_F%2BeenvB-GSSJ-iZf8Lzu3TV0pLEokw_OjM-wNRXvHR3Q@mail.gmail.com> <86wrcjf767.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
2011/10/5 Dag-Erling Sm=F8rgrav <des@des.no>: > Michael Bushkov <bushman@freebsd.org> writes: >> 2. Consequences of the aforementioned problem can probably be >> corrected by using _setsockopt(..., SO_NOSIGPIPE) in >> __open_cached_connection() in nscachedcli.c > > That sounds like a workaround rather than a fix... Not necessarily. Using SO_NOSIGPIPE is a valid option when someone wants to see read/write on a closed socket fail and return -1 with errno=3DEPIPE. Quick grep in libc shows that resolver code in lib/libc/resolv/res_send.c also sets SO_NOSIGPIPE for exactly that reason. --Artem
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFqOu6iTP_cHMoxU4T3buwrx_twEe3_g5rZ-bse8_uNYePv=Sg>