* tramp: how kill process
@ 2015-11-22 18:03 Paul
2015-11-22 18:46 ` Michael Albinus
0 siblings, 1 reply; 10+ messages in thread
From: Paul @ 2015-11-22 18:03 UTC (permalink / raw)
To: help-gnu-emacs
Hallo people.
When on "/sudo::/root" tramp buffer, I run the following command:
(start-file-process "my-process-name" (get-buffer-create
"*my-process-output*") "pathToProcess")
I can see it in M-x list-processes.
Unfortunatelly the following does not kill it:
C-x C-f "/sudo::/root"
M-x: (kill-process "my-process-name")
How to do it in elegant way then?
regards
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: tramp: how kill process
2015-11-22 18:03 tramp: how kill process Paul
@ 2015-11-22 18:46 ` Michael Albinus
2015-11-22 20:04 ` Paul
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Michael Albinus @ 2015-11-22 18:46 UTC (permalink / raw)
To: Paul; +Cc: help-gnu-emacs
Paul <mafeuser@gmail.com> writes:
> Hallo people.
Hi,
> When on "/sudo::/root" tramp buffer, I run the following command:
>
> (start-file-process "my-process-name" (get-buffer-create
> "*my-process-output*") "pathToProcess")
>
> I can see it in M-x list-processes.
>
> Unfortunatelly the following does not kill it:
>
> C-x C-f "/sudo::/root"
> M-x: (kill-process "my-process-name")
`kill-process' needs a process as argument, not a process name.
> How to do it in elegant way then?
M-x list-processes
Move to the process to kill, and enter "d".
> regards
Best regards, Michael.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: tramp: how kill process
2015-11-22 18:46 ` Michael Albinus
@ 2015-11-22 20:04 ` Paul
2015-11-22 20:58 ` Bob Proulx
2015-11-22 20:21 ` Paul
2015-11-22 20:26 ` Paul
2 siblings, 1 reply; 10+ messages in thread
From: Paul @ 2015-11-22 20:04 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs
Hallo Michael,
thank You for the answer.
Unfortunately, `d' is not bound to any command in *Process List* of my
emacs.
C-h k d
d is undefined
my emacs version is:
GNU Emacs 24.5.1 (i686-pc-linux-gnu, GTK+ Version 2.24.23) of 2015-04-25
on localhost
best regards
On 22.11.2015 19:46, Michael Albinus wrote:
> Paul <mafeuser@gmail.com> writes:
>
>> Hallo people.
>
> Hi,
>
>> When on "/sudo::/root" tramp buffer, I run the following command:
>>
>> (start-file-process "my-process-name" (get-buffer-create
>> "*my-process-output*") "pathToProcess")
>>
>> I can see it in M-x list-processes.
>>
>> Unfortunatelly the following does not kill it:
>>
>> C-x C-f "/sudo::/root"
>> M-x: (kill-process "my-process-name")
>
> `kill-process' needs a process as argument, not a process name.
>
>> How to do it in elegant way then?
>
> M-x list-processes
>
> Move to the process to kill, and enter "d".
>
>> regards
>
> Best regards, Michael.
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: tramp: how kill process
2015-11-22 20:04 ` Paul
@ 2015-11-22 20:58 ` Bob Proulx
0 siblings, 0 replies; 10+ messages in thread
From: Bob Proulx @ 2015-11-22 20:58 UTC (permalink / raw)
To: Paul, help-gnu-emacs
Paul wrote:
> >>Unfortunatelly the following does not kill it:
> >>
> >>C-x C-f "/sudo::/root"
> >>M-x: (kill-process "my-process-name")
> >
> >`kill-process' needs a process as argument, not a process name.
> >
> >>How to do it in elegant way then?
I don't know how elegant this is but if worst comes to worst you can get
a ps listing and then kill the associated ssh process.
$ ps -efH | less
/emacs
...look for ssh process associated with that emacs...
$ kill 123
For example:
$ ps -efH | less
rwp 24638 1 0 Oct23 ? 00:03:31 /usr/bin/emacs
rwp 5215 24638 0 13:55 pts/62 00:00:00 ssh -o ControlMaster=auto -o ControlPath=tramp.%C -o ControlPersist=no -e none despair
$ kill 5215
Bob
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: tramp: how kill process
2015-11-22 18:46 ` Michael Albinus
2015-11-22 20:04 ` Paul
@ 2015-11-22 20:21 ` Paul
2015-11-22 20:26 ` Paul
2 siblings, 0 replies; 10+ messages in thread
From: Paul @ 2015-11-22 20:21 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs
I also just installed list-processes+, but no success with killing this
process.
also M-x list-processes-kill-process (provided by list-processes+) does
not kill it.
On 22.11.2015 19:46, Michael Albinus wrote:
> Paul <mafeuser@gmail.com> writes:
>
>> Hallo people.
>
> Hi,
>
>> When on "/sudo::/root" tramp buffer, I run the following command:
>>
>> (start-file-process "my-process-name" (get-buffer-create
>> "*my-process-output*") "pathToProcess")
>>
>> I can see it in M-x list-processes.
>>
>> Unfortunatelly the following does not kill it:
>>
>> C-x C-f "/sudo::/root"
>> M-x: (kill-process "my-process-name")
>
> `kill-process' needs a process as argument, not a process name.
>
>> How to do it in elegant way then?
>
> M-x list-processes
>
> Move to the process to kill, and enter "d".
>
>> regards
>
> Best regards, Michael.
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: tramp: how kill process
2015-11-22 18:46 ` Michael Albinus
2015-11-22 20:04 ` Paul
2015-11-22 20:21 ` Paul
@ 2015-11-22 20:26 ` Paul
2015-11-22 20:30 ` Paul
2 siblings, 1 reply; 10+ messages in thread
From: Paul @ 2015-11-22 20:26 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs
Michael,
I debugged list-processes-kill-process.
it does not work because (get-text-property (point) 'process) returns
nil, when point is on the line with process to be killed.
But body contains the command `delete-process`, which You probably
wanted to suggest me through `d' shortcut.
that one worked:)
thank YOu for Your help
best regards!
On 22.11.2015 19:46, Michael Albinus wrote:
> Paul <mafeuser@gmail.com> writes:
>
>> Hallo people.
>
> Hi,
>
>> When on "/sudo::/root" tramp buffer, I run the following command:
>>
>> (start-file-process "my-process-name" (get-buffer-create
>> "*my-process-output*") "pathToProcess")
>>
>> I can see it in M-x list-processes.
>>
>> Unfortunatelly the following does not kill it:
>>
>> C-x C-f "/sudo::/root"
>> M-x: (kill-process "my-process-name")
>
> `kill-process' needs a process as argument, not a process name.
>
>> How to do it in elegant way then?
>
> M-x list-processes
>
> Move to the process to kill, and enter "d".
>
>> regards
>
> Best regards, Michael.
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: tramp: how kill process
2015-11-22 20:26 ` Paul
@ 2015-11-22 20:30 ` Paul
2015-11-22 21:34 ` Michael Albinus
0 siblings, 1 reply; 10+ messages in thread
From: Paul @ 2015-11-22 20:30 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs
Michael,
I must unsay it.
delete-process removes process from list of processes at
*Process List*, but process itself is NOT killed, I still can see it
in M-x proced.
regards
On 22.11.2015 21:26, Paul wrote:
> Michael,
> I debugged list-processes-kill-process.
> it does not work because (get-text-property (point) 'process) returns
> nil, when point is on the line with process to be killed.
>
> But body contains the command `delete-process`, which You probably
> wanted to suggest me through `d' shortcut.
>
> that one worked:)
>
> thank YOu for Your help
>
> best regards!
>
> On 22.11.2015 19:46, Michael Albinus wrote:
>> Paul <mafeuser@gmail.com> writes:
>>
>>> Hallo people.
>>
>> Hi,
>>
>>> When on "/sudo::/root" tramp buffer, I run the following command:
>>>
>>> (start-file-process "my-process-name" (get-buffer-create
>>> "*my-process-output*") "pathToProcess")
>>>
>>> I can see it in M-x list-processes.
>>>
>>> Unfortunatelly the following does not kill it:
>>>
>>> C-x C-f "/sudo::/root"
>>> M-x: (kill-process "my-process-name")
>>
>> `kill-process' needs a process as argument, not a process name.
>>
>>> How to do it in elegant way then?
>>
>> M-x list-processes
>>
>> Move to the process to kill, and enter "d".
>>
>>> regards
>>
>> Best regards, Michael.
>>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: tramp: how kill process
2015-11-22 20:30 ` Paul
@ 2015-11-22 21:34 ` Michael Albinus
2015-11-23 13:09 ` Paul
2015-11-23 13:12 ` Paul
0 siblings, 2 replies; 10+ messages in thread
From: Michael Albinus @ 2015-11-22 21:34 UTC (permalink / raw)
To: Paul; +Cc: help-gnu-emacs
Paul <mafeuser@gmail.com> writes:
> Michael,
Hi Paul,
> I must unsay it.
>
> delete-process removes process from list of processes at
> *Process List*, but process itself is NOT killed, I still can see it
> in M-x proced.
In my Emacs stanza (25.0.50), the key "d" in the *Process List* buffer
is bound to the function `process-menu-delete-process'. It's docstring
says "Kill process at point in a ‘list-processes’ buffer."
> regards
Best regards, Michael.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: tramp: how kill process
2015-11-22 21:34 ` Michael Albinus
@ 2015-11-23 13:09 ` Paul
2015-11-23 13:12 ` Paul
1 sibling, 0 replies; 10+ messages in thread
From: Paul @ 2015-11-23 13:09 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs
based on `delete-process` source code, it first tires to kill the
process, then delete entry from *Process List*.
The second step is done without checking the result of first step.
Probably this is the reason of behaviour in my emacs.
either of the following commands return -1, and do NOT kill the process:
(signal-process "my-process-name" 'SIGKILL)
(signal-process "my-process-name" 'SIGINT)
I'm running these commands from /sudo::/root
Some inconsistency arises: on one hand emacs can create process with
other user id, and on the other hand does not allow to kill it.
Is it a bug?
regards,
Paul
On 22.11.2015 22:34, Michael Albinus wrote:
> Paul <mafeuser@gmail.com> writes:
>
>> Michael,
>
> Hi Paul,
>
>> I must unsay it.
>>
>> delete-process removes process from list of processes at
>> *Process List*, but process itself is NOT killed, I still can see it
>> in M-x proced.
>
> In my Emacs stanza (25.0.50), the key "d" in the *Process List* buffer
> is bound to the function `process-menu-delete-process'. It's docstring
> says "Kill process at point in a ‘list-processes’ buffer."
>
>> regards
>
> Best regards, Michael.
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: tramp: how kill process
2015-11-22 21:34 ` Michael Albinus
2015-11-23 13:09 ` Paul
@ 2015-11-23 13:12 ` Paul
1 sibling, 0 replies; 10+ messages in thread
From: Paul @ 2015-11-23 13:12 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs
On 22.11.2015 22:34, Michael Albinus wrote:
> Paul <mafeuser@gmail.com> writes:
>
>> Michael,
>
> Hi Paul,
>
>> I must unsay it.
>>
>> delete-process removes process from list of processes at
>> *Process List*, but process itself is NOT killed, I still can see it
>> in M-x proced.
>
> In my Emacs stanza (25.0.50), the key "d" in the *Process List* buffer
> is bound to the function `process-menu-delete-process'. It's docstring
> says "Kill process at point in a ‘list-processes’ buffer."
Unfortunatelly `process-menu-delete-process' is not present on my emacs
(24.5.1)
>
>> regards
>
> Best regards, Michael.
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-11-23 13:12 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-22 18:03 tramp: how kill process Paul
2015-11-22 18:46 ` Michael Albinus
2015-11-22 20:04 ` Paul
2015-11-22 20:58 ` Bob Proulx
2015-11-22 20:21 ` Paul
2015-11-22 20:26 ` Paul
2015-11-22 20:30 ` Paul
2015-11-22 21:34 ` Michael Albinus
2015-11-23 13:09 ` Paul
2015-11-23 13:12 ` Paul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).