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 18:51:39 +0300 Message-ID: <83lew3yagk.fsf@gnu.org> References: <874n2v9l10.fsf@igel.home> <874k2saqjh.fsf@gnus.org> <83y203yla1.fsf@gnu.org> <87fsmbap4e.fsf@gnus.org> <83wnfnyjkg.fsf@gnu.org> <87wnfn98oc.fsf@gnus.org> <83sfqbydvi.fsf@gnu.org> <8735ib933t.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24168"; 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 17:53:11 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 1ng7D4-000642-Mk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Apr 2022 17:53:10 +0200 Original-Received: from localhost ([::1]:56544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ng7D3-0000RP-98 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Apr 2022 11:53:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng7Cw-0000RG-9u for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2022 11:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43091) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ng7Cw-0004Ix-1L for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2022 11:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ng7Cv-0008Hc-V9 for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2022 11:53: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 15:53: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.165021072231760 (code B ref 17036); Sun, 17 Apr 2022 15:53:01 +0000 Original-Received: (at 17036) by debbugs.gnu.org; 17 Apr 2022 15:52:02 +0000 Original-Received: from localhost ([127.0.0.1]:36987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ng7By-0008G4-9M for submit@debbugs.gnu.org; Sun, 17 Apr 2022 11:52:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ng7Bw-0008Fj-3Y for 17036@debbugs.gnu.org; Sun, 17 Apr 2022 11:52:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51046) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng7Bq-0004E3-9v; Sun, 17 Apr 2022 11:51:54 -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=w0OVvQOwjNkWemy3KnZb3Kuh+/wMzfZ9kDQpdKILkos=; b=W5bs43ijhRIb q11t3T1IDJOFgoFaBLjSK6zzu5K0CfgCkcaypg9OukxhnJmJq3xhO5VKCGwlPUWv9SXWy25RzWfLG mkVvEaRUsCMKvsF2ShbgyybJx5/UlEV6Rdrhb5EGjvx7oKouZiMvJpPqWTpVa5+1FcoHTvnrH0/5W eYxZC8oZg/gH/EiXhCMTzFZ8O4l76dmU8nijcobc09lESNX1zJlOjDsowV4oaSInx1syYFF+HYSBK KwHswJb50IOPi4jDjIGu7oqZZlpMT/4lwhk1ybyS7Aa/6bYfACVd/2DyR2H5GM2AFfL9gGTK8Qa4G 0n2BPit0tlzVHMTERxw1tA==; Original-Received: from [87.69.77.57] (port=1555 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 1ng7Bp-0001iq-O7; Sun, 17 Apr 2022 11:51:54 -0400 In-Reply-To: <8735ib933t.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 17 Apr 2022 16:49:42 +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:230076 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 16:49:42 +0200 > > Eli Zaretskii writes: > > >> > . the exit status of the restarted Emacs is discarded, so it will > >> > not be available to the parent program, at least on MS-Windows, > >> > and also if execvp fails for some reason; > >> > >> Again, Emacs doesn't exit, so... > > > > I meant when the restarted Emacs exits. It _can_ exit, can't it? > > If you exit from the new process, then you'll get the exit code from > that next call to `kill-emacs'? Do you see that returned to the shell?