From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24270 invoked by alias); 9 Jan 2002 23:46:43 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 24198 invoked from network); 9 Jan 2002 23:46:41 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 9 Jan 2002 23:46:41 -0000 Received: from redhat.com (reddwarf.cygnus.com [205.180.231.12]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id PAA03855; Wed, 9 Jan 2002 15:46:38 -0800 (PST) Message-ID: <3C3CD52D.E01410D2@redhat.com> Date: Wed, 09 Jan 2002 15:46:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2smp i686) X-Accept-Language: en MIME-Version: 1.0 To: gdb@sources.redhat.com CC: Daniel Jacobowitz Subject: When do cleanups happen? References: <20020109151622.A842@nevyn.them.org> <3C3CC1CD.798D57DB@redhat.com> <20020109181030.B6397@nevyn.them.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00074.txt.bz2 Daniel Jacobowitz wrote: [cleanups only happen if there is an error] > > On Wed, Jan 09, 2002 at 02:18:53PM -0800, Michael Snyder wrote: > > Cleanups are always done, no later than > > when the command is finished executing (if not earlier). > > Well, the comments in utils.c are wrong, then :) Hmm! Now I am confused. What do others think? Are cleanups cleaned-up only on error? Or always when a command finishes? I know that I have found that if I make a cleanup that closes a file, then I cannot close that file myself else it will wind up being closed twice.