all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Roland Winkler <winkler@gnu.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: Filipp Gunbin <fgunbin@fastmail.fm>, emacs-devel@gnu.org
Subject: Re: process-file instead of call-process in proced.el?
Date: Sun, 27 Mar 2022 21:57:27 -0500	[thread overview]
Message-ID: <87wngeokbs.fsf@gnu.org> (raw)
In-Reply-To: <87tubjfpyo.fsf@gmx.de> (Michael Albinus's message of "Sun, 27 Mar 2022 16:08:15 +0200")

On Sun, Mar 27 2022, Michael Albinus wrote:
> Michael Albinus <michael.albinus@gmx.de> writes:
>> I see. So if we don't want to emulate list-system-processes on a remote
>> host, we need another mean to determine, that a process is killed in a
>> sudo environment.
>
> I've prepared a first version of a patch (still missing documentation),
> see appended. The changes are:
>
> - `signal-process' is capable now to signal remote processes. This is
>   triggered when either the PROCESS object has the property `remote-pid'
>   (set by Tramp), or the PROCESS is just a number, and the additional
>   optional parameter REMOTE is a remote file name.
>
> - There is a new user option `proced-remote-directory', which defaults
>   to "/sudo::". When `proced-send-signal' or `proced-renice' are invoked
>   with a prefix arg ("C-u k" or "C-u r" in the *Proced* buffer), the
>   respective signal is sent with the credentials as identified by this
>   user option.

I have no meaningful scenario to test the code myself.  Just from
looking at the patch, I am wondering:

How is it supposed to work that one signals remote processes if
list-system-processes is not available on a remote host?  Say, how
should one find out the PIDs?  How does this integrate into proced that
is otherwise only running locally?

Maybe my ignorance stems from not having any usage scenarios in the
first place.



  reply	other threads:[~2022-03-28  2:57 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-25  0:09 process-file instead of call-process in proced.el? Filipp Gunbin
2022-03-25  6:54 ` Eli Zaretskii
2022-03-25 10:24   ` Filipp Gunbin
2022-03-25 10:31     ` Eli Zaretskii
2022-03-25 11:46       ` Michael Albinus
2022-03-25 12:12         ` Eli Zaretskii
2022-03-25 12:29           ` Filipp Gunbin
2022-03-25 13:34             ` Roland Winkler
2022-03-25 13:58             ` Michael Albinus
2022-03-25 14:26               ` Filipp Gunbin
2022-03-25 14:29                 ` Michael Albinus
2022-03-25 15:40                   ` Filipp Gunbin
2022-03-25 15:43                     ` Michael Albinus
2022-03-26 16:49 ` Michael Albinus
2022-03-26 17:37   ` Roland Winkler
2022-03-26 18:31     ` Michael Albinus
2022-03-26 18:49       ` Roland Winkler
2022-03-27  7:28         ` Michael Albinus
2022-03-27 14:08           ` Michael Albinus
2022-03-28  2:57             ` Roland Winkler [this message]
2022-03-28  7:41               ` Michael Albinus
2022-03-28 14:34                 ` Roland Winkler
2022-03-28 14:53             ` Filipp Gunbin
2022-03-28 15:40               ` Michael Albinus
2022-03-28 16:11                 ` Filipp Gunbin
2022-03-28 16:39                   ` Michael Albinus
2022-03-28 19:42                     ` Filipp Gunbin
2022-03-30 11:20                       ` Michael Albinus
2022-03-30 15:34                         ` Filipp Gunbin
2022-03-28 17:08             ` Jim Porter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wngeokbs.fsf@gnu.org \
    --to=winkler@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=fgunbin@fastmail.fm \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.