freebsd-nq/lib/libc
Bill Paul cc64a2bf11 Fix for bug noticed by Christoph Kukulies.
_yp_dobind() checks to see if a fork() happens (by checking PIDs) and
invalidates all bindings if it finds itself in a newly created child
process. (This avoids sharing RPC client handles and socket descriptors
with the parent, which would be bad.) Unfortunately, it summarily
calls clnt_destroy() on the handles, which may result in the destruction
of a descriptor that isn't really a socket.

This is fixed by replacing the explicit call to clnt_destroy() with a
call to _yp_unbind(), which deals with potentially hosed socket descriptors
an a safe manner.

This is basically a one-liner. Once I confirm that it fixes Christoph's
problem, I'd like permission to put it in the 2.2-RELENG branch.
1996-12-20 19:41:15 +00:00
..
amd64 Correct a "spelling" error in a comment. 1996-10-31 17:50:45 +00:00
compat-43 fix .Xr macro 1996-09-21 15:08:10 +00:00
db make u_char * -> char * conversion explicit. 1996-12-05 18:05:11 +00:00
gen Mention FreeBSD explicitly along with 4.2BSD so that the 1996-12-15 23:23:17 +00:00
gmon Cleaned up interrupt masking by declaring the state variable in a 1996-08-28 20:15:32 +00:00
i386 Correct a "spelling" error in a comment. 1996-10-31 17:50:45 +00:00
locale Fix yet another buffer overflow. :-( 1996-12-16 17:32:58 +00:00
net Correct some xrefs/mlinks. 1996-12-14 23:27:20 +00:00
nls General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
quad Added prototypes. 1995-12-26 13:25:13 +00:00
regex collate_range_cmp -> __collate_range_cmp 1996-10-31 04:38:21 +00:00
rpc get_myaddress() wasn't following the interface array properly 1996-11-22 23:37:08 +00:00
stdio perror () does not prepend ": " for the non-NULL argument "". close PR 1492 1996-09-30 15:39:18 +00:00
stdlib If you run with option Z and malloc fails, memset gets called 1996-10-29 20:35:39 +00:00
stdtime Move PATH_LOCALE handling to setlocale.c, simplify locale path building, 1996-11-26 02:52:52 +00:00
string delete doubled words, e.g.: "the the" -> "the" 1996-10-05 22:27:30 +00:00
sys Back out change. The last argument to semctl() IS union semun 1996-12-18 08:03:31 +00:00
xdr delete doubled words, e.g.: "the the" -> "the" 1996-10-05 22:27:30 +00:00
yp Fix for bug noticed by Christoph Kukulies. 1996-12-20 19:41:15 +00:00
Makefile Back out minor bumping per Peter suggestion 1996-08-13 14:37:53 +00:00