From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17036: Continuation for Emacs: invoking a process on exit? Date: Sun, 17 Apr 2022 20:49:09 +0300 Message-ID: <83bkwzy50q.fsf@gnu.org> References: <874n2v9l10.fsf@igel.home> <874k2saqjh.fsf@gnus.org> <83y203yla1.fsf@gnu.org> <87fsmbap4e.fsf@gnus.org> <83wnfnyjkg.fsf@gnu.org> <83tuarye9r.fsf@gnu.org> <83k0bnya5u.fsf@gnu.org> <87mtgj7l6g.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14540"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rgm@gnu.org, 17036@debbugs.gnu.org, schwab@linux-m68k.org, rrt@sc3d.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 17 20:52:47 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngA0s-0003cD-MP for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Apr 2022 20:52:46 +0200 Original-Received: from localhost ([::1]:47862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngA0r-00012V-Gg for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Apr 2022 14:52:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng92A-0006s4-4T for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2022 13:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ng929-0004Gb-QK for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2022 13:50:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ng929-0007GX-Ly for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2022 13:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Apr 2022 17:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17036 X-GNU-PR-Package: emacs Original-Received: via spool by 17036-submit@debbugs.gnu.org id=B17036.165021777327888 (code B ref 17036); Sun, 17 Apr 2022 17:50:01 +0000 Original-Received: (at 17036) by debbugs.gnu.org; 17 Apr 2022 17:49:33 +0000 Original-Received: from localhost ([127.0.0.1]:37099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ng91g-0007Fk-OB for submit@debbugs.gnu.org; Sun, 17 Apr 2022 13:49:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ng91f-0007FW-Fy for 17036@debbugs.gnu.org; Sun, 17 Apr 2022 13:49:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng91Y-0004Di-Eu; Sun, 17 Apr 2022 13:49:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=lUdmRMP5O+HUUgDRVVi4qMBp5+/NL4PdYKL/Ti9eKb4=; b=c5oBBtxudUuI ZEeWQ+7IYhZ6PR0iifQ20w6S2tielJi9AkxJ2DpyB+2cprnlpPISg9zjskfcoH5c/JhV6izF3jupj OU6bYX7vFkgweS3J2EK51Ir0+Dwqg9XlHyALx+D4bIWC3kKNdsPESCVxLok3BUM5s/I0pY5gtyI7w GhE14B2r1bqCV3JYkeA3GXnawF1sRbUUdiX8najMuwhQLMpsqxbQ0I6W8RVlaXRPhe9dG9GJcw6i8 8axu0VwkpCvYAQPPyyoBZoQjVaExft9f3h3kmZ8m1OWjc068Yrz+w/FGqPxwE810KL0/QU4MDzJNO eTxM99M64OM4yUaVlte0iA==; Original-Received: from [87.69.77.57] (port=4865 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng91X-0007Rh-4Z; Sun, 17 Apr 2022 13:49:23 -0400 In-Reply-To: <87mtgj7l6g.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 17 Apr 2022 18:02:15 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:230096 Archived-At: > From: Lars Ingebrigtsen > Cc: rgm@gnu.org, 17036@debbugs.gnu.org, schwab@linux-m68k.org, rrt@sc3d.org > Date: Sun, 17 Apr 2022 18:02:15 +0200 > > Eli Zaretskii writes: > > > Btw, calling 'error' in this place, which we also do on Posix > > platforms, is not very useful: this is past the call to > > shut_down_emacs, so all 'error' does at this point is exit with an > > error status, and the error message is lost. Something to keep in > > mind, I guess. > > It prints the error message OK on Debian, at least, but I guess > emacs_perror is the function to use here? I guess so. Although that will be lost as well if Emacs is invoked as a GUI program from some desktop shortcut or in some other fancy way which redirects the standard handles to the great void...