Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Nov 2003 15:46:34 -0800
From:      Alfred Perlstein <bright@mu.org>
To:        Daniel Eischen <eischen@vigrid.com>
Cc:        current@freebsd.org
Subject:   Re: [PATCH] please review. file descriptor passing for libc_r.
Message-ID:  <20031129234634.GX35957@elvis.mu.org>
In-Reply-To: <Pine.GSO.4.10.10311291758410.10943-100000@pcnet5.pcnet.com>
References:  <20031129211251.GV35957@elvis.mu.org> <Pine.GSO.4.10.10311291758410.10943-100000@pcnet5.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Daniel Eischen <eischen@vigrid.com> [031129 14:59] wrote:
> [re@ removed]
> 
> On Sat, 29 Nov 2003, Alfred Perlstein wrote:
> 
> > * Alfred Perlstein <bright@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@mu.org cell: 408-480-4684



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031129234634.GX35957>