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: Michael Albinus
Subject: Re: process-file instead of call-process in proced.el?
Date: Mon, 28 Mar 2022 17:40:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Filipp Gunbin <fgunbin@fastmail.fm> writes:

Hi Filipp,

>> +      (if (tramp-compat-funcall
>> +           'tramp-send-command-and-check
>> +           vec (format "\\kill -%s %d" sigcode pid))
>> +          0 -1))))
>> +
>
> Can the command be a connection-local variable?.  Then the ability to
> customize, existing before deprecation of proced-signal-function, would
> not be lost.

Would be possible. However, I fail to understand which command you have
in mind instead of "kill".

>> +  (let ((default-directory
>> +         (if (and current-prefix-arg (stringp proced-remote-directory))
>> +             proced-remote-directory temporary-file-directory))
>> +        failures)
>
> As for me, I'd leave the proced-remote-directory thing out.  IIUC, it
> allows to send signals to remote processes from "normal" proced buffer,
> with local default-directory (with prefix arg).  I'd be fine with
> requiring user to open proced from remote directory, with
> default-directory already "prepared".

What do you do if a user starts proced from a buffer with a remote
default directory to, let's say, "/ssh:otherhost:/path"?
proced-send-signal would try to send the signal to otherhost instead of
your local host.

And no, you cannot prevent this scenario. Users execute proced whenever
they like.

> Thanks.
> Filipp

Best regards, Michael.



reply via email to

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