[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.
- process-file instead of call-process in proced.el?, Filipp Gunbin, 2022/03/24
- Re: process-file instead of call-process in proced.el?,
Eli Zaretskii <=
- Re: process-file instead of call-process in proced.el?, Filipp Gunbin, 2022/03/25
- Re: process-file instead of call-process in proced.el?, Eli Zaretskii, 2022/03/25
- Re: process-file instead of call-process in proced.el?, Michael Albinus, 2022/03/25
- Re: process-file instead of call-process in proced.el?, Eli Zaretskii, 2022/03/25
- Re: process-file instead of call-process in proced.el?, Filipp Gunbin, 2022/03/25
- Re: process-file instead of call-process in proced.el?, Roland Winkler, 2022/03/25
- Re: process-file instead of call-process in proced.el?, Michael Albinus, 2022/03/25
- Re: process-file instead of call-process in proced.el?, Filipp Gunbin, 2022/03/25
- Re: process-file instead of call-process in proced.el?, Michael Albinus, 2022/03/25
- Re: process-file instead of call-process in proced.el?, Filipp Gunbin, 2022/03/25