From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Maguire, Andrew \(GE Infra, Energy\)" Newsgroups: gmane.emacs.bugs Subject: Emacs 22.1 hung after delete-process Date: Tue, 14 Aug 2007 17:07:56 +0200 Message-ID: <1F26F4742242BA449B1716A3A1E93EC60DA91AF2@BFTMLVEM02.e2k.ad.ge.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1187110606 6717 80.91.229.12 (14 Aug 2007 16:56:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Aug 2007 16:56:46 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 14 18:56:44 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IKzhE-0004du-1O for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Aug 2007 18:56:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKzhD-0004rR-CE for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Aug 2007 12:56:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IKy1Z-0007mB-EE for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2007 11:09:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IKy1Y-0007ly-Ps for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2007 11:09:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKy1Y-0007lt-Do for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2007 11:09:36 -0400 Original-Received: from ext-ch1gw-6.online-age.net ([64.37.194.14]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IKy1X-0001Ai-WC for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2007 11:09:36 -0400 Original-Received: from int-ch1gw-6.online-age.net (int-ch1gw-6 [3.159.232.70]) by ext-ch1gw-6.online-age.net (8.13.6/8.13.6/20051111-SVVS-TLS-DNSBL) with ESMTP id l7EF80Ah025341 for ; Tue, 14 Aug 2007 11:08:00 -0400 Original-Received: from cinmlef01.e2k.ad.ge.com (int-ch1gw-6 [3.159.232.70]) by int-ch1gw-6.online-age.net (8.13.6/8.13.6/20050510-SVVS) with ESMTP id l7EF4xuC021376 for ; Tue, 14 Aug 2007 11:05:00 -0400 Original-Received: from BFTMLVEM02.e2k.ad.ge.com ([3.159.56.35]) by cinmlef01.e2k.ad.ge.com with Microsoft SMTPSVC(6.0.3790.2499); Tue, 14 Aug 2007 11:07:58 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6619.12 content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Emacs 22.1 hung after delete-process Thread-Index: AcfehOP/Lb9ZX4TITIWgROp4XnRGAQ== X-OriginalArrivalTime: 14 Aug 2007 15:07:58.0269 (UTC) FILETIME=[E635E6D0:01C7DE84] X-Detected-Kernel: Linux 2.4-2.6 X-Mailman-Approved-At: Tue, 14 Aug 2007 12:55:48 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16357 Archived-At: 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" "$|=3D1; print 'starting... '; $SIG{'HUP'} =3D 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 :-( I have only tried this on Windows. Emacs 21.2 does not have this = problem. kill-process and quit-process are fine and do not hang Emacs. Thanks, Andrew Ps. Sorry if this email is repeated, I got a bounced return. In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --cflags = -Ic:/gnuwin32/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: C/l Minor modes in effect: shell-dirtrack-mode: t show-paren-mode: t encoded-kbd-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: identity abbrev-mode: t Recent input: =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 C-s C-w C-s C-s C-s C-s C-s C-s=20 C-s C-w C-w C-w C-s C-s C-s=20 C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s =20 =20 =20 =20 =20 =20 =20 C-s e n d i f C-s C-s C-s C-s C-r C-r=20 C-r C-r C-s C-s C-s C-s C-s C-s C-s C-s C-s=20 C-r C-r C-s M-p C-s C-s C-s =20 C-s C-w C-w C-w C-s C-s C-s C-s C-s C-s C-s C-s =20 =20 C-s C-s C-s =20 =20 =20 =20 =20 Recent messages: Quit Mark saved where search started [4 times] Region 60 in buffer A is empty [2 times] Refining difference region 61 ... Region 60 in buffer A is empty [2 times] To drag modelines or buffers up and down, use the middle button. Mark saved where search started Mark set Mark saved where search started [7 times] Loading emacsbug...done