From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7738 invoked by alias); 12 Jul 2007 22:24:52 -0000 Received: (qmail 7730 invoked by uid 22791); 12 Jul 2007 22:24:51 -0000 X-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Jul 2007 22:24:46 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l6CMOhYJ024175 for ; Thu, 12 Jul 2007 18:24:43 -0400 Received: from gateway.sf.frob.com (vpn-14-29.rdu.redhat.com [10.11.14.29]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l6CMOgdx003756; Thu, 12 Jul 2007 18:24:42 -0400 Received: from magilla.localdomain (magilla.sf.frob.com [198.49.250.228]) by gateway.sf.frob.com (Postfix) with ESMTP id CBA31357B; Thu, 12 Jul 2007 15:24:41 -0700 (PDT) Received: by magilla.localdomain (Postfix, from userid 5281) id B7A164D0489; Thu, 12 Jul 2007 15:24:41 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Andrew Cagney Cc: frysk Subject: Re: Elf and Dwarf from DwflModule life times? In-Reply-To: Andrew Cagney's message of Thursday, 12 July 2007 17:37:59 -0400 <46969F37.60208@redhat.com> X-Windows: no hardware is safe. Message-Id: <20070712222441.B7A164D0489@magilla.localdomain> Date: Thu, 12 Jul 2007 22:24:00 -0000 X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q3/txt/msg00106.txt.bz2 > I just figured out that "fildes" is copied (not duped) when elf_clone is > called; we'll need to be careful there as well. I can't imagine why you would ever use elf_clone. Anyway, yes, libelf does nothing special to manage file descriptors. libdwfl manages the file descriptors.