emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: process-file instead of call-process in proced.el?


From: Eli Zaretskii
Subject: Re: process-file instead of call-process in proced.el?
Date: Fri, 25 Mar 2022 09:54:34 +0300

> From: Filipp Gunbin <fgunbin@fastmail.fm>
> Date: Fri, 25 Mar 2022 03:09:12 +0300
> Cc: winkler@gnu.org
> 
> There's this TODO in proced.el:
> 
> --8<---------------cut here---------------start------------->8---
> ;; - Allow "sudo kill PID", "sudo renice PID"
> --8<---------------cut here---------------end--------------->8---
> 
> WDYT, can we just use process-file instead of call-process?  Then, if
> proced is opened from a /sudo:: (or su) buffer, and (setq
> proced-signal-function "kill") is set, proced-send-signal "just works"
> for processes owned by different user, with no special code in proced.
> 
> The simple patch is below.

Thanks, but this should be at least conditioned on systems that have
these commands available.  MS-Windows, for example, has neither 'kill'
nor 'renice', and the equivalents of 'kill' that I know about don't
accept a signal ID as a command-line argument.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]