From owner-freebsd-current@FreeBSD.ORG Sat Nov 29 15:46:34 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEA0C16A4CE for ; Sat, 29 Nov 2003 15:46:34 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EDAD43FCB for ; Sat, 29 Nov 2003 15:46:34 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 1CCC02ED440; Sat, 29 Nov 2003 15:46:34 -0800 (PST) Date: Sat, 29 Nov 2003 15:46:34 -0800 From: Alfred Perlstein To: Daniel Eischen Message-ID: <20031129234634.GX35957@elvis.mu.org> References: <20031129211251.GV35957@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: current@freebsd.org Subject: Re: [PATCH] please review. file descriptor passing for libc_r. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2003 23:46:34 -0000 * Daniel Eischen [031129 14:59] wrote: > [re@ removed] > > On Sat, 29 Nov 2003, Alfred Perlstein wrote: > > > * Alfred Perlstein [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