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.devel Subject: Re: Remote process attributes Date: Mon, 04 Apr 2022 14:21:00 +0300 Message-ID: <837d85f61v.fsf@gnu.org> References: <87pmlxcdx1.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12827"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 04 13:22:08 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nbKme-0003CG-2d for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Apr 2022 13:22:08 +0200 Original-Received: from localhost ([::1]:37488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbKmc-0003AO-SA for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Apr 2022 07:22:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbKlX-0001nO-QM for emacs-devel@gnu.org; Mon, 04 Apr 2022 07:20:59 -0400 Original-Received: from [2001:470:142:3::e] (port=58262 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbKlX-0003Eh-F7; Mon, 04 Apr 2022 07:20:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=5IDthY9uACX3OMgYKRi/9Tb+HfqS/Pcs3t4otnm4u50=; b=p+F7laL+fb0C TfOw7+LZddvZ+H1ty/yH86/P3WVaaFKbLfkv53YP7nyifR4OK1MLSjOWgrvb+GdLk5AZikoVulBMu 1MJqkl7seZHu3OzthRqX9RBgmjpbTp3/7U9E15QZQn8nwxPvbxapCQM3+aluZgY0gcUGHj4WVupd9 0MTM7RDuXjSwyAjyTWgv8jvY3Y/mdkR0PUcFSBDlCe27KVeKGjdaBrw+VBLx4rn1f2T93YLR/p+uN wBmYDiaQlNpD5Tpk2nllWp30+9tvJ1Z3nQM83kHlv0mgOWLNJhP8Xr1LhGRwifh4U16KwqGQHAd8B XMQ89quGsVi0w1yRBSohRA==; Original-Received: from [87.69.77.57] (port=4755 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 1nbKlW-0007Dv-UF; Mon, 04 Apr 2022 07:20:59 -0400 In-Reply-To: <87pmlxcdx1.fsf@gmx.de> (message from Michael Albinus on Mon, 04 Apr 2022 12:59:22 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:287746 Archived-At: > From: Michael Albinus > 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.