From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#72013: The eshell/kill command doesn't work with eshell/sudo correctly Date: Sun, 14 Jul 2024 15:14:47 -0700 Message-ID: <7d55215c-bd61-3cb4-aab2-177a74fc1d08@gmail.com> References: <3f7aae11-2569-3cba-e937-2511a3c00504@gmail.com> <87frsh8zw4.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------oOhYj01NR3VtW5WicshgPTn8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7916"; mail-complaints-to="usenet@ciao.gmane.io" Cc: the_wurfkreuz , 72013@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 15 00:16:28 2024 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 1sT7W8-0001wq-55 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Jul 2024 00:16:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sT7Vi-0005N2-4b; Sun, 14 Jul 2024 18:16:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sT7Vg-0005Mt-Me for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2024 18:16:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sT7Vg-0000Z9-Eb for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2024 18:16:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sT7Vi-0003CF-0l for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2024 18:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jul 2024 22:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72013 X-GNU-PR-Package: emacs Original-Received: via spool by 72013-submit@debbugs.gnu.org id=B72013.172099535512274 (code B ref 72013); Sun, 14 Jul 2024 22:16:01 +0000 Original-Received: (at 72013) by debbugs.gnu.org; 14 Jul 2024 22:15:55 +0000 Original-Received: from localhost ([127.0.0.1]:58713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sT7Vb-0003Bs-9G for submit@debbugs.gnu.org; Sun, 14 Jul 2024 18:15:55 -0400 Original-Received: from mail-pl1-f182.google.com ([209.85.214.182]:44113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sT7VY-0003Bb-IP for 72013@debbugs.gnu.org; Sun, 14 Jul 2024 18:15:53 -0400 Original-Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1fb64d627b0so18518615ad.0 for <72013@debbugs.gnu.org>; Sun, 14 Jul 2024 15:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720995290; x=1721600090; darn=debbugs.gnu.org; h=in-reply-to:from:content-language:references:cc:to:subject :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=+zssZRLtpMZhYIEEVFah+iLePNg314iRfv5/553SV9w=; b=C+1vnyG2JGQGsR67hSqWoz/Xob5mfmwQszw+czLNxDrLWox6RI4lxtc88++OrGy5He J+F2nof5kH9PbRXq4L12u5qdYaBRp+0v0f9vlosU1OqsaWzjiuVPL5YGtiPIHJqjemj+ zSxtE6TP0A1ORfTu5ndwwXbUCrWdZWitDoQxuCftbEogL72kJzU2aYEM1R0jlVYc3Vvb 3SXxHq7z3yjrjtwRKJVX6lIh0zmpGCImRYBVWWvyeYMj1Y/SvDyNf0XGKUvt5t8Mn0yV 14EV81cE0BqU3SYR5r1k0NdfupqCWjZ8ZXCQHj/noysvxpUlgcT7p960Uln/TzyLvGO/ E6fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720995290; x=1721600090; h=in-reply-to:from:content-language:references:cc:to:subject :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=+zssZRLtpMZhYIEEVFah+iLePNg314iRfv5/553SV9w=; b=r3aYEq8DdLblRjEtsdIaLcLhPpbwA+OT5KUvV11Yt1UifcaUKsjFIrSynWBCaLOhAr aJMo+Jhd1DbeksUgOgcaSXtzJIuMIs5sG9+cVmy/gii6tVQc8ONQDyjkEFMFdHxD3qJN IVfoY05ZA9yIVFTndgsy+oX4kdYmy+O5ME73WkipN076a7Er1vAEfxZHPbvfEmq1weAy CuNZnFa9y4pY71gxZbjM8ley3zwnwaOUHwZiZG4MOvAy6RYGcJqqb5szRh5FAm535YIp I1hmMJyK5Rj4NHk8c3wu8KmYZVcblDpms3XgSSd+36ysCRBkvARqG+YDwTpN1eFeVF0K SHIQ== X-Gm-Message-State: AOJu0YwTTE3ty6xMItIbsB5RSAZ8DzxkwM+r3uAHXBdkorI/XaGy+EvO hj6gfBaVa91KfeTNEsgIL8OmH3ws/vD00thUXfuGC3obTdUoyJHy X-Google-Smtp-Source: AGHT+IEZ/Xe5sETK4TJjPYN2bC5ktk4aZOJXZtxmwdzZf83tqFPDaubM022/TT5Cl3+zoEbw2zaWbQ== X-Received: by 2002:a17:902:d2ce:b0:1f3:b55:e247 with SMTP id d9443c01a7336-1fbb6ea4736mr125328575ad.55.1720995289923; Sun, 14 Jul 2024 15:14:49 -0700 (PDT) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-1fc0bc27503sm27734375ad.175.2024.07.14.15.14.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Jul 2024 15:14:48 -0700 (PDT) Content-Language: en-US In-Reply-To: <87frsh8zw4.fsf@gmx.de> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288850 Archived-At: This is a multi-part message in MIME format. --------------oOhYj01NR3VtW5WicshgPTn8 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 7/10/2024 12:33 AM, Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > Tramp ought to support signal-process (and interrupt-process). See > optional argument REMOTE of signal-process. > > Best regards, Michael. Ok, I figured out why I thought Tramp didn't support 'signal-process'. Elsewhere in Emacs, you can provide the signal to use like so: 'SIGKILL'. However, Tramp's 'tramp-signal-process' passes the name directly to the POSIX "kill" command, which expects the "SIG" to be removed. Here's a patch which does this. --------------oOhYj01NR3VtW5WicshgPTn8 Content-Type: text/plain; charset=UTF-8; name="0001-Support-passing-signals-like-SIGCODE-to-tramp-signal.patch" Content-Disposition: attachment; filename*0="0001-Support-passing-signals-like-SIGCODE-to-tramp-signal.pa"; filename*1="tch" Content-Transfer-Encoding: base64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lbnQgKGxpc3QgIydw cm9jZXNzcCBwcm9jZXNzKSkpKQotICAgICh1bmxlc3MgKG9yIChudW1iZXJwIHNpZ2NvZGUp IChzeW1ib2xwIHNpZ2NvZGUpKQotICAgICAgKHNpZ25hbCAnd3JvbmctdHlwZS1hcmd1bWVu dCAobGlzdCAjJ251bWJlcnAgc2lnY29kZSkpKQorICAgIChjb25kCisgICAgICgoc3ltYm9s cCBzaWdjb2RlKQorICAgICAgKHNldHEgc2lnY29kZSAoc3ltYm9sLW5hbWUgc2lnY29kZSkp CisgICAgICAod2hlbiAoc3RyaW5nLXByZWZpeC1wICJTSUciIHNpZ2NvZGUpCisgICAgICAg IChzZXRxIHNpZ2NvZGUgKHN1YnN0cmluZyBzaWdjb2RlIDMpKSkpCisgICAgICgobm90IChu dW1iZXJwIHNpZ2NvZGUpKQorICAgICAgKHNpZ25hbCAnd3JvbmctdHlwZS1hcmd1bWVudCAo bGlzdCAjJ251bWJlcnAgc2lnY29kZSkpKSkKICAgICA7OyBJZiBpdCdzIGEgVHJhbXAgcHJv Y2Vzcywgc2VuZCBTSUdDT0RFIHJlbW90ZWx5LgogICAgICh3aGVuIChhbmQgcGlkIHZlYykK ICAgICAgICh0cmFtcC1tZXNzYWdlCi0tIAoyLjI1LjEKCg== --------------oOhYj01NR3VtW5WicshgPTn8--