2011/10/5 Dag-Erling Smørgrav <d...@des.no>: > Michael Bushkov <bush...@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=EPIPE. Quick grep in libc shows that resolver code in lib/libc/resolv/res_send.c also sets SO_NOSIGPIPE for exactly that reason. --Artem _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"