From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Newsgroups: gmane.emacs.help Subject: Re: tramp: how kill process Date: Mon, 23 Nov 2015 14:09:11 +0100 Message-ID: <56530FF7.2050608@gmail.com> References: <56520381.3090900@gmail.com> <87vb8tc1oq.fsf@gmx.de> <565224EC.9090705@gmail.com> <565225EA.1030908@gmail.com> <87y4dpd8hc.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1448284180 31119 80.91.229.3 (23 Nov 2015 13:09:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2015 13:09:40 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 23 14:09:39 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a0qsB-0001JE-8C for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Nov 2015 14:09:35 +0100 Original-Received: from localhost ([::1]:60423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0qsB-0003sH-EN for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Nov 2015 08:09:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0qrw-0003r6-2K for help-gnu-emacs@gnu.org; Mon, 23 Nov 2015 08:09:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0qrq-0003us-FE for help-gnu-emacs@gnu.org; Mon, 23 Nov 2015 08:09:19 -0500 Original-Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:34379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0qrq-0003uk-7n for help-gnu-emacs@gnu.org; Mon, 23 Nov 2015 08:09:14 -0500 Original-Received: by lffu14 with SMTP id u14so107103170lff.1 for ; Mon, 23 Nov 2015 05:09:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=Jvs8OmgKgL0Qm9dck8c76fSKPvX3Chjja9tYFHdqBIA=; b=TRJKU8/08mIRbdfCvgbdijuXSCkOsVsRB6td4rhfm8sdUg2z/8rXcdt3A13xBP0E77 4SdFGpYABKrrVK6ke1NwjYcnqYYDUlFKVZ1luXGCaRqAVRHrz188X2pQT5EoZmc0kHuT setl8zI5W/ziGJGn8J7UQgOXKXIlpYP/aLgdzgMZ4vnkOD0pQwmtfSFAgaMggYpWFAjw 3zj99QbxxrjwDeoZD8MznsVTW896rvdyJjL/SrXHA4feNSPxm8hCP6R1wSxCrh7pN1EI yYeE/bLuk34V8yvcNVNLIXXiISD7uoNOdmE8rfiHjwFakdTEWWw9pRMPu8rS/Dbo0Z94 IZ4w== X-Received: by 10.25.87.12 with SMTP id l12mr11292055lfb.97.1448284153186; Mon, 23 Nov 2015 05:09:13 -0800 (PST) Original-Received: from [192.168.20.129] (89-71-18-69.dynamic.chello.pl. [89.71.18.69]) by smtp.googlemail.com with ESMTPSA id g193sm1852253lfb.6.2015.11.23.05.09.12 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Nov 2015 05:09:12 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <87y4dpd8hc.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c07::231 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108201 Archived-At: 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 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. >