From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: [andrew.maguire@ge.com: Emacs 22.1 hung after delete-process] Date: Wed, 15 Aug 2007 23:24:22 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187234457 18468 80.91.229.12 (16 Aug 2007 03:20:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2007 03:20:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 16 05:20:54 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ILVuk-00049v-SD for ged-emacs-devel@m.gmane.org; Thu, 16 Aug 2007 05:20:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILVuk-00063g-A9 for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2007 23:20:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILVug-00063Q-T5 for emacs-devel@gnu.org; Wed, 15 Aug 2007 23:20:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILVuf-00063C-Ay for emacs-devel@gnu.org; Wed, 15 Aug 2007 23:20:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILVuf-000639-8b for emacs-devel@gnu.org; Wed, 15 Aug 2007 23:20:45 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ILVuf-0002QA-1x for emacs-devel@gnu.org; Wed, 15 Aug 2007 23:20:45 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1ILVyA-0007CG-UE; Wed, 15 Aug 2007 23:24:22 -0400 X-Spook: AGT. AMME AIMSX mailbomb Europol high security Leitrim X-Ran: qDWW&2*}ORGD+o~C')$&o&>{,#!n"pjp{Q[)nF3zqpE}?G$|4~&;7"%gyh8fVaGZ-Ja'GB X-Hue: green X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76613 Archived-At: Richard Stallman wrote: > Would someone please DTRT, then ack? Can't reproduce this one on GNU/Linux either. Though I'm not sure I expect to, given that AFAICS, delete-process sends the (untrappable) SIGKILL, and the perl stuff below is trapping SIGHUP. Or is the issue that trying to trap SIGHUP somehow creates an hung perl process on Windows? Is delete-process supposed to be graceful in such cases? > From: "Maguire, Andrew \(GE Infra, Energy\)" > Subject: Emacs 22.1 hung after delete-process > To: > Date: Tue, 14 Aug 2007 17:07:56 +0200 [...] > Using delete-process to kill a subprocess causes Emacs to hang > irretrievably if the sub-process does not immediately exit. > > E.g. Using perl.exe (5.8.6) and controlling the HUP signal: > > (setq perl-process > (start-process "perl" "*perl*" > "perl.exe" > "-e" > "$|=1; print 'starting... '; $SIG{'HUP'} = sub { print 'killed!'; die; }; sleep(20);")) > > (delete-process perl-process) > > Windows may popup a process killed dialog, select "End now". > Emacs is now completely hung :-(