From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760945AbYDXQJg (ORCPT ); Thu, 24 Apr 2008 12:09:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755510AbYDXQJZ (ORCPT ); Thu, 24 Apr 2008 12:09:25 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:49477 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1755105AbYDXQJY (ORCPT ); Thu, 24 Apr 2008 12:09:24 -0400 Date: Thu, 24 Apr 2008 09:09:24 -0700 (PDT) Message-Id: <20080424.090924.257450074.davem@davemloft.net> To: alan@lxorguk.ukuu.org.uk Cc: jakub@redhat.com, drepper@redhat.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, akpm@linux-foundation.org, torvalds@linux-foundation.org Subject: Re: [PATCH] alternative to sys_indirect, part 1 From: David Miller In-Reply-To: <20080424163835.55520b5b@the-village.bc.nu> References: <20080424162444.1c5b9ba2@the-village.bc.nu> <20080424.090008.232544945.davem@davemloft.net> <20080424163835.55520b5b@the-village.bc.nu> X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alan Cox Date: Thu, 24 Apr 2008 16:38:35 +0100 > On Thu, 24 Apr 2008 09:00:08 -0700 (PDT) > David Miller wrote: > > > From: Alan Cox > > Date: Thu, 24 Apr 2008 16:24:44 +0100 > > > > > BTW in 4.4BSD and derivatives if I remember rightly F_CLOEXEC *is* > > > inherited across accept() so I doubt any user space software will be too > > > upset by such a shift. > > > > It actually doesn't. > > > > Just like in Linux, no file descriptor flags are inherited. > > NDELAY certainly appears to be looking at Stevens. It's checking NDELAY, for the accept() call itself, on the parent socket. It allocates the new FD for the process and sets FREAD and FWRITE in the flags, that's it.