[PATCH] please review. file descriptor passing for libc_r.
Alfred Perlstein
bright at mu.org
Sat Nov 29 15:46:34 PST 2003
* Daniel Eischen <eischen at vigrid.com> [031129 14:59] wrote:
> [re@ removed]
>
> On Sat, 29 Nov 2003, Alfred Perlstein wrote:
>
> > * Alfred Perlstein <bright at mu.org> [031129 12:21] wrote:
> > >
> > > Descriptor's passed can't be closed because the uthread kernel does this:
> >
> > The weird part is that i'm doing a sendfile(2) using the descriptors
> > and it appears that sendfile does the FD_LOCK thing on the descriptors
> > so... ?
>
> It should be fine in that case. Is it not?
Actually what I was seeing was a bug that was compounded by a bug
in my code...
It still appears that the current code will not close a descriptor
that has been passed and has had nothing done to it other than
close().
--
- Alfred Perlstein
- Research Engineering Development Inc.
- email: bright at mu.org cell: 408-480-4684
More information about the freebsd-current
mailing list