From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 4 17:09:34 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0B2D1065680 for ; Tue, 4 Aug 2009 17:09:34 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outV.internet-mail-service.net (outv.internet-mail-service.net [216.240.47.245]) by mx1.freebsd.org (Postfix) with ESMTP id BE6FF8FC13 for ; Tue, 4 Aug 2009 17:09:34 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id AF6AEC317; Tue, 4 Aug 2009 10:09:34 -0700 (PDT) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id F1D0E2D6006; Tue, 4 Aug 2009 10:09:33 -0700 (PDT) Message-ID: <4A786B61.6060702@elischer.org> Date: Tue, 04 Aug 2009 10:09:53 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <319cceca0908030119i3432a495ya60aa431dab0e1b1@mail.gmail.com> <86k51k4kvl.fsf@ds4.des.no> <86fxc84ksj.fsf@ds4.des.no> <200908040138.14743.max@love2party.net> <319cceca0908040227hf9a0f92jbf05b11e9f974994@mail.gmail.com> <20090804093036.GN1292@hoeg.nl> <319cceca0908040239k2accd7fen402db4c91687a267@mail.gmail.com> <20090804094142.GO1292@hoeg.nl> <319cceca0908040252w105d3dfdge9dec3c8b6d28607@mail.gmail.com> <4A7863D5.3000701@elischer.org> <8663d3345x.fsf@ds4.des.no> In-Reply-To: <8663d3345x.fsf@ds4.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Maslan , FreeBSD Hackers , Ed Schouten Subject: Re: sosend() and mbuf X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2009 17:09:35 -0000 Dag-Erling Smørgrav wrote: > Julian Elischer writes: >> and kernel threads have not file descriptors (I think) so.... it >> would crash... > > Threads don't have filedesc tables. Processes have filedesc tables. In > theory, his thread is associated with proc0, which *does* have a > properly initialized filedesc table. > > DES unless he is in 7.x in which case he's getting a separate process to boot, which has no file descriptor table.