From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zimbra.cs.ucla.edu (zimbra.cs.ucla.edu [131.179.128.68]) by sourceware.org (Postfix) with ESMTPS id 74AED3858294 for ; Fri, 5 Aug 2022 17:43:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 74AED3858294 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.ucla.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.ucla.edu Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9D5311600ED; Fri, 5 Aug 2022 10:43:18 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id KtLXSHsEnhwk; Fri, 5 Aug 2022 10:43:17 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id CB5361600EF; Fri, 5 Aug 2022 10:43:17 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 2SG64fO7HU_K; Fri, 5 Aug 2022 10:43:17 -0700 (PDT) Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B086C1600ED; Fri, 5 Aug 2022 10:43:17 -0700 (PDT) Message-ID: Date: Fri, 5 Aug 2022 10:43:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: Hook for `_exit' Content-Language: en-US To: Po Lu Cc: GNU C Library development References: <87les389c6.fsf.ref@yahoo.com> <87les389c6.fsf@yahoo.com> <871qtv2j7w.fsf@oldenburg.str.redhat.com> <87o7wz6qb5.fsf@yahoo.com> <87r11v13w0.fsf@oldenburg.str.redhat.com> <87bksz6q14.fsf@yahoo.com> <87k07n13h4.fsf@oldenburg.str.redhat.com> <874jyr6p7n.fsf@yahoo.com> <87fsib12s5.fsf@oldenburg.str.redhat.com> <87wnbn55dz.fsf@yahoo.com> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <87wnbn55dz.fsf@yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2022 17:43:21 -0000 On 8/5/22 03:52, Po Lu via Libc-alpha wrote: > the GTK developers > are unwilling to provide proper hooks (or even to use exit) instead. Matthias suggested in that Emacs could use a g_message hook and parse the message to determine that GTK is about to _exit. Although a horrible hack, I've seen worse hacks in Emacs.