Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756492AbXFJC3w (ORCPT ); Sat, 9 Jun 2007 22:29:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753715AbXFJC3o (ORCPT ); Sat, 9 Jun 2007 22:29:44 -0400 Received: from twinlark.arctic.org ([207.29.250.54]:45238 "EHLO twinlark.arctic.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751637AbXFJC3n (ORCPT ); Sat, 9 Jun 2007 22:29:43 -0400 Date: Sat, 9 Jun 2007 19:29:42 -0700 (PDT) From: dean gaudet To: Ulrich Drepper cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, mingo@elte.hu, torvalds@linux-foundation.org Subject: Re: [PATCH] Introduce O_CLOEXEC (take >2) In-Reply-To: <200705311809.l4VI9F9X009556@devserv.devel.redhat.com> Message-ID: References: <200705311809.l4VI9F9X009556@devserv.devel.redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 615 Lines: 14 nice. i proposed something like this 8 or so years ago... the problem is that you've also got to deal with socket(2), socketpair(2), accept(2), pipe(2), dup(2), dup2(2), fcntl(F_DUPFD)... everything which creates new fds. really what is desired is fork/clone with selective duping of fds. i.e. you supply the list of what will become fd 0,1,2 in the child. -dean - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/