all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: [andrew.maguire@ge.com: Emacs 22.1 hung after delete-process]
Date: Wed, 15 Aug 2007 23:24:22 -0400	[thread overview]
Message-ID: <jwhcn0p3fd.fsf@fencepost.gnu.org> (raw)
In-Reply-To: E1ILNV7-00076X-OO@fencepost.gnu.org

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\)" <andrew.maguire@ge.com>
> Subject: Emacs 22.1 hung after delete-process 
> To: <bug-gnu-emacs@gnu.org>
> 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 :-(

  reply	other threads:[~2007-08-16  3:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-15 18:21 [andrew.maguire@ge.com: Emacs 22.1 hung after delete-process] Richard Stallman
2007-08-16  3:24 ` Glenn Morris [this message]
2007-08-16  4:46   ` dhruva
2007-08-17  0:32     ` Richard Stallman
2007-08-16  8:02   ` Jason Rumney
2007-08-16 12:42     ` dhruva
2007-08-16 14:09       ` dhruva
2007-08-16 17:04         ` dhruva
2007-08-16 19:41         ` Eli Zaretskii
2007-08-17  0:32         ` Richard Stallman
2007-08-17  5:27           ` dhruva
2007-08-27 10:07           ` dhruva
2007-09-02 17:02             ` Jason Rumney
2007-08-17 13:43         ` Jason Rumney
2007-08-17 17:31           ` dhruva
2007-08-17 20:40             ` Jason Rumney
2007-08-19  7:42               ` dhruva
2007-08-22  6:29                 ` dhruva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwhcn0p3fd.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.