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 17:29:20 +0300 Message-ID: <83tuarye9r.fsf@gnu.org> References: <874n2v9l10.fsf@igel.home> <874k2saqjh.fsf@gnus.org> <83y203yla1.fsf@gnu.org> <87fsmbap4e.fsf@gnus.org> <83wnfnyjkg.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="371"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rgm@gnu.org, 17036@debbugs.gnu.org, schwab@linux-m68k.org, rrt@sc3d.org To: larsi@gnus.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 17 16:30:51 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 1ng5vO-000ARr-NS for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Apr 2022 16:30:50 +0200 Original-Received: from localhost ([::1]:55300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ng5vM-0000i7-Dn for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Apr 2022 10:30:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng5uh-0000hm-VG for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2022 10:30:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42950) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ng5uc-0000Rn-Jj for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2022 10:30:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ng5uc-0001lU-Dm for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2022 10:30:02 -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 14:30:02 +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.16502057916747 (code B ref 17036); Sun, 17 Apr 2022 14:30:02 +0000 Original-Received: (at 17036) by debbugs.gnu.org; 17 Apr 2022 14:29:51 +0000 Original-Received: from localhost ([127.0.0.1]:36847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ng5uQ-0001kl-SP for submit@debbugs.gnu.org; Sun, 17 Apr 2022 10:29:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ng5uO-0001kY-RU for 17036@debbugs.gnu.org; Sun, 17 Apr 2022 10:29:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50060) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng5uI-0000P6-Sl; Sun, 17 Apr 2022 10:29:42 -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=lmfiK8uHXHmuyrcgWATgUEslJHbNIr3gt0nFkY87ZVY=; b=IVACMi4xFCL5 pneWuN3urbBtiGNVtiCXWkVox7xriM8un77XgG9qWizdbUc6cU6oyvNexFzPqjdbJ/n17UM9B8Q27 B2Blb7UPqvk3139o0eQiO0kVSuGfWpJd7gsxySVDUPDcgYgHkWFjP5L2YNdx3OMoODUfVoHfwgFAf i2mf8U8hY2q6jBuhEOC0vDyYaDp1NH0H53jyNBTr4GVWiuIDXgKGoNJBTYLrp8bHM2op/NSEMqKSM 6YYqxH0UaiBIfLrOe9ORfgDOzOTUsATC0EwsVZjLmWbPKSWDSYd3NEWCalXTuIFz1dfRfnWE1VmVF bl7cMIbBiwF4dao8j/+N3w==; Original-Received: from [87.69.77.57] (port=4375 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 1ng5uB-0004v7-NO; Sun, 17 Apr 2022 10:29:40 -0400 In-Reply-To: <83wnfnyjkg.fsf@gnu.org> (message from Eli Zaretskii on Sun, 17 Apr 2022 15:34:55 +0300) 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:230061 Archived-At: > Date: Sun, 17 Apr 2022 15:34:55 +0300 > From: Eli Zaretskii > Cc: rgm@gnu.org, 17036@debbugs.gnu.org, schwab@linux-m68k.org, rrt@sc3d.org > > > From: Lars Ingebrigtsen > > Cc: rgm@gnu.org, 17036@debbugs.gnu.org, schwab@linux-m68k.org, rrt@sc3d.org > > Date: Sun, 17 Apr 2022 14:08:49 +0200 > > > > Eli Zaretskii writes: > > > > > As implemented, it won't work reliably on MS-Windows, because execvp > > > there doesn't do what you think it should. I think we should use > > > sys_spawnve instead. > > > > Ah, I grepped for execvp to see whether we already used it, but didn't > > notice that the hits were from Gnulib. > > > > I'm not familiar with sys_spawnve -- can you do the adjustments? > > I don't think I will have the time. It isn't a simple job, because > just calling sys_spawnve will not do -- that function currently > supports only Emacs sub-processes. I eventually had an implementation idea that is much simpler than the above, so I went ahead and implemented it. It currently doesn't work in a -nw session, I hope to debug that later.