From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24442 invoked by alias); 6 Dec 2008 15:59:05 -0000 Received: (qmail 24429 invoked by uid 22791); 6 Dec 2008 15:59:05 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 06 Dec 2008 15:58:27 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mB6FwQ4C016820 for ; Sat, 6 Dec 2008 10:58:26 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mB6FwPQt004672; Sat, 6 Dec 2008 10:58:25 -0500 Received: from opsy.redhat.com (vpn-12-152.rdu.redhat.com [10.11.12.152]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mB6FwOKA014549; Sat, 6 Dec 2008 10:58:24 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 0B8663785F7; Sat, 6 Dec 2008 08:58:24 -0700 (MST) To: gdb-patches@sourceware.org Subject: Re: RFA: close-on-exec internal file descriptors References: <20081206152551.GA3047@caradoc.them.org> From: Tom Tromey Reply-To: Tom Tromey Date: Sat, 06 Dec 2008 15:59:00 -0000 In-Reply-To: <20081206152551.GA3047@caradoc.them.org> (Daniel Jacobowitz's message of "Sat\, 6 Dec 2008 10\:25\:51 -0500") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-12/txt/msg00113.txt.bz2 >>>>> "Daniel" == Daniel Jacobowitz writes: Daniel> If you build with headers that include O_CLOEXEC support, but the Daniel> running kernel is too old, will this fail to open entirely? Or are Daniel> unknown open flags ignored? I don't know, but I will find out. Daniel> Also, WDYT about separating the goal from the mechanism? With this Daniel> patch, every bit of gdb knows "we close file descriptors on exec"; Daniel> if it was gdb_open, it would just be "gdb-specific version of open". Sounds good to me, I'll do this. Tom