From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23321 invoked by alias); 28 Jun 2007 23:06:19 -0000 Received: (qmail 23311 invoked by uid 22791); 28 Jun 2007 23:06:19 -0000 X-Spam-Check-By: sourceware.org Received: from b.mail.sonic.net (HELO b.mail.sonic.net) (64.142.19.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 28 Jun 2007 23:06:17 +0000 Received: from webmail.sonic.net (b.webmail.sonic.net [64.142.100.148]) by b.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id l5SN6FpT017137; Thu, 28 Jun 2007 16:06:15 -0700 Received: from 12.7.175.2 (SquirrelMail authenticated user msnyder) by webmail.sonic.net with HTTP; Thu, 28 Jun 2007 16:06:15 -0700 (PDT) Message-ID: <11603.12.7.175.2.1183071975.squirrel@webmail.sonic.net> In-Reply-To: <20070628224815.GC12578@caradoc.them.org> References: <9270.12.7.175.2.1183069663.squirrel@webmail.sonic.net> <20070628224815.GC12578@caradoc.them.org> Date: Thu, 28 Jun 2007 23:12:00 -0000 Subject: Re: [OB] Add cleanup, source.c From: msnyder@sonic.net To: msnyder@sonic.net, gdb-patches@sourceware.org User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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: 2007-06/txt/msg00509.txt.bz2 > There's no call to do_cleanups in this function, so it's quite hard to > see if this cleanup will be run or discarded if error is not called. When are they ever discarded? My last understanding of the mechanism was that the cleanups always get called, eventually. Presumably when we return to the command / event loop. The only reason to call do_cleanups, in my understanding, is if you want to force them to be done right now instead of later.