all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: emacs-devel@gnu.org
Subject: Re: Remote process attributes
Date: Mon, 04 Apr 2022 14:21:00 +0300	[thread overview]
Message-ID: <837d85f61v.fsf@gnu.org> (raw)
In-Reply-To: <87pmlxcdx1.fsf@gmx.de> (message from Michael Albinus on Mon, 04 Apr 2022 12:59:22 +0200)

> From: Michael Albinus <michael.albinus@gmx.de>
> Date: Mon, 04 Apr 2022 12:59:22 +0200
> 
> Triggered by the recent changes in proced.el, I've played a little bit
> in order to see whether proced could also show remote processes. After
> all, it is really simple:
> 
> - list-system-processes and process-attributes shall return process
>   information of the remote host when default-directory is remote.

Is it really certain that the default-directory being remote is
evidence significant enough that the user wants to list remote
processes?  Processes aren't files, and aren't even related to files
like programs (whose executable files are looked up before we run
them).

> A problem could be to find the proper arguments for ps. I've used a
> default setting for GNU/Linux, other systems could apply
> connection-local variables for that. My proof-of-concept implementation
> offers such settings for the Tramp adb method as well as for remote
> (Free)BSD systems and ps implementations based on Busybox. That are the
> test cases I could run locally.

As mentioned in that thread, there are several ps implementations, and
they differ in what they accept and how they report various
attributes.  We switched to our own implementation to avoid the
problems we had using ps.  Now these problems will be back.  I
envision trouble.



  reply	other threads:[~2022-04-04 11:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-04 10:59 Remote process attributes Michael Albinus
2022-04-04 11:21 ` Eli Zaretskii [this message]
2022-04-04 11:33   ` Michael Albinus
2022-04-04 12:21     ` Eli Zaretskii
2022-04-04 12:27       ` Michael Albinus
2022-04-04 20:24         ` chad
2022-04-05 15:14           ` Michael Albinus

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=837d85f61v.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --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.