From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57199: 29.0.50; Processes spawned by Emacs become zombie after restarting Date: Mon, 15 Aug 2022 15:50:34 +0600 Message-ID: <87zgg5n8d1.fsf@disroot.org> References: <87fshz2sfh.fsf@disroot.org> <834jyfl0ry.fsf@gnu.org> <871qtj2fpv.fsf@disroot.org> <87lerqaslr.fsf@gnus.org> Reply-To: Akib Azmain Turja Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33812"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57199@debbugs.gnu.org, Eli Zaretskii To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 15 11:52:19 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 1oNWle-0008cm-TN for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 11:52:18 +0200 Original-Received: from localhost ([::1]:55244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNWld-0004ox-Tx for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 05:52:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNWlP-0004oc-2B for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 05:52:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51149) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNWlO-0007FH-Po for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 05:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNWlO-0007tR-Lf for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 05:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Akib Azmain Turja Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Aug 2022 09:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57199 X-GNU-PR-Package: emacs Original-Received: via spool by 57199-submit@debbugs.gnu.org id=B57199.166055708730291 (code B ref 57199); Mon, 15 Aug 2022 09:52:02 +0000 Original-Received: (at 57199) by debbugs.gnu.org; 15 Aug 2022 09:51:27 +0000 Original-Received: from localhost ([127.0.0.1]:40897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNWko-0007sU-Ds for submit@debbugs.gnu.org; Mon, 15 Aug 2022 05:51:26 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:33584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNWkZ-0007s8-Ow for 57199@debbugs.gnu.org; Mon, 15 Aug 2022 05:51:24 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 1DB454005B; Mon, 15 Aug 2022 11:51:11 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zVMy4293dtIa; Mon, 15 Aug 2022 11:51:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1660557068; bh=BZ8wfjzGHiPoVz3oL2PK3OX7p0rAKW0HBoluS9cBaTY=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=BdWiagckqJu1x2UK6Re8FXfQsheXCgIpouND2TL8cpb4i7zBixXz+s3ClpMauLiMo Ye0oJw/pOGvzXkSWQjljN2E6hIvhOvgtXlT7pL+CIqpHSjblmJSQW6jlBI+1oyeYM2 X7vCjq4YJW+EE3TdhEYVYQTNIBfJD1m/gl+M8ZRcluD1dPnnUEdEMPVMWXhL1ISUKk s+/MefS77JZ+OxJzd/bOcrOABqh27Ve9XcI+XKXmzCbVjcszWCH1UCXT59ki+zLXiR TU3o/RYJcFqYgV8Phx8PMyLVGCPupyF4FInGr9gFlGT2Te4QvZG0rWX+irv5yvqBi8 Aeg00zEnEr/0g== In-Reply-To: <87lerqaslr.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 15 Aug 2022 09:11:44 +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:239764 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Lars Ingebrigtsen writes: > Akib Azmain Turja writes: > >> IIUC, Emacs sends SIGHUP (from kill_buffer_processes in process.c) to >> all child processes to kill them just before exiting (or restarting), >> and Tor uses that signal as the reload signal. > > [...] > >> How can a process resist being killed? SIGKILL is lethal, always. Why >> kill-emacs sends SIGHUP while kill-process and delete-process sends >> SIGKILL? > > Because we want processes started by Emacs to be allowed to shut down > gracefully upon Emacs exit, but with explicit `kill-process', we don't > care about that as much. > > So the problem here is that you're starting a process that responds to > SIGHUP by not shutting down, and I don't think there's anything we can > do on the Emacs side to help with that. Perhaps you can write a wrapper > script that does the right thing on HUP. > > But I don't think there's anything to be done on the Emacs side here, so > I'm closing this bug report. > > > Why there is nothing to do? Emacs can "wait" on the child when it exits, or it might disown it. =2D-=20 Akib Azmain Turja Find me on Mastodon at @akib@hostux.social. This message is signed by me with my GnuPG key. Its fingerprint is: 7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmL6FusACgkQVTX89U2I YWvPrxAAmfvRHJonK2uWzdaMV/TddQsup9Ivg7tPEhvnz8fkEG4nvxjvV7+lyAqX Qhk2DHGvatbJNb3jbSF0u266V4bF7g7kff0kMOEQ91tntCycRwl2HBMd1W14z7Si tQYi8iRTGBeddwKGCRUzRVogXswhYb6PmNGvOnY63p3mXAqTiqemMcABKpD53H9b 5TW3jeWzSnOscDkkuk8ksVl54Tp7hkny3S+rZYi6bxJhUa0mBfpr28mLm4ajB43s oqKkWO8VQo+n/3Quq2tiu3ynGUnY0m68k29rpCEkL7ZIn2jUTvIFf3YBUQHu8imk Q8vLNDLNLqTNMHyRl4sdpa1StYdg44iUueFIlw4J4gCUDK4lD2gKbvQ82+6KwN6N SXJcxSJCupI47u5Ljl5kIi+z/FbbnQLLGUPl6UXm585qfEAnP/LvceWdyA4Zrmyc Tw3UDg9BgPOe7nqzT5srK7TJYG69PGswa061zcUUv+9WkHre/U+ACzbEkW41MIgB NB/siwvmClZUP38dXt3wYRHSAh9hEunXENJ6kyrlFmz/NQYRtAQHC4TeIlOOu6fy YNBcjrXU3uPjVvbl982dfjM5jk6NGaNVETmT6jlRp8ztt4mX4bWrhqkEZ32JvbLp vTvPnn3eB2MgfarujBqaYESAn22b18EBEt7YtLncm7izwW+jf4o= =1LxU -----END PGP SIGNATURE----- --=-=-=--