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#56239: 28.1; Cannot send signals by name to inferior process by calling signal-process interactively Date: Mon, 27 Jun 2022 14:24:59 +0300 Message-ID: <83ilom8i2c.fsf@gnu.org> References: <87edzb9mot.fsf@gnus.org> <87bkuev1qu.fsf@gmx.de> <87o7ye5qxy.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11915"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael.albinus@gmx.de, 56239@debbugs.gnu.org, mardani29@yahoo.es To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 27 13:26: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 1o5msc-0002tJ-RQ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 13:26:10 +0200 Original-Received: from localhost ([::1]:56018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5msb-0007eX-Gw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 07:26:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5msU-0007eB-4D for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 07:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56140) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5msT-0000hP-NA for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 07:26:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5msT-0007ZU-KI for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 07:26: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: Mon, 27 Jun 2022 11:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56239 X-GNU-PR-Package: emacs Original-Received: via spool by 56239-submit@debbugs.gnu.org id=B56239.165632910928995 (code B ref 56239); Mon, 27 Jun 2022 11:26:01 +0000 Original-Received: (at 56239) by debbugs.gnu.org; 27 Jun 2022 11:25:09 +0000 Original-Received: from localhost ([127.0.0.1]:50033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5mrc-0007XW-Jd for submit@debbugs.gnu.org; Mon, 27 Jun 2022 07:25:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5mrZ-0007Wg-JK for 56239@debbugs.gnu.org; Mon, 27 Jun 2022 07:25:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35854) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5mrT-0000L9-A7; Mon, 27 Jun 2022 07:24:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=fzvGpfc3XPFeZ8V/nnPZUGLqapxZbkMC0a4NK4B1aNo=; b=jGRpK5ffkJi2boPbheGQ tyRbp4zSnmiwIhwlYncF/u+ix5wnfEuDGPYYcqgXYhNbC2YGqJolwx4kamGnPlvgTfGZG4/LaKAlv 9Xh2EBWoe/ScgzHqxmE9pIBbuF+/hd9IsGWvN0rORGGR4vC5N9t834AkaRdmkxZEVacxPZw5YmnwP 4ciXWn7VRypftL2xTCRtbqI1Sfz+z65qIoLeTWSFTKEt7u9dB/DhSPf+JbTzfr8VCP2FCtG0w28l0 WIvkEYrWiMtOljF0fltJ5HMZAGfSeuLkbx7ebaII7mt6mthf58CamOX7ZmdhVOcqn+67Eu7UWE70K bJH7wRXOOA3VWw==; Original-Received: from [87.69.77.57] (port=3676 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 1o5mrS-0002RL-4V; Mon, 27 Jun 2022 07:24:59 -0400 In-Reply-To: <87o7ye5qxy.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 27 Jun 2022 12:41:29 +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:235434 Archived-At: > Cc: 56239@debbugs.gnu.org, Daniel Martín > From: Lars Ingebrigtsen > Date: Mon, 27 Jun 2022 12:41:29 +0200 > > Michael Albinus writes: > > > Unfortunately, it's not such simple. signal-process can also deliver a > > signal to a process running on a remote host. The signal names on that > > host might differ from the signal names on the local host, collected by > > Fsignal_names. > > > > How do we want to handle this? I don't see a simple solution, because > > the file name handler machinery is not in use here. > > I think users will just have to use numbers in those cases (which is > still possible). I.e., the symbol names are a convenience where it > works, but if not, then users can't use those. I agree, but there's a larger problem here: signal numbers that correspond to given names are also system-dependent. That is, SIGINT could be 2 on one system and 295 on another. So if you type M-x signal-process RET INT RET you could send to the process a signal number that will be interpreted on the remote host as some completely different signal. So I think we should at least document that symbolic names should be used for remote processes only very carefully, if at all.