emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: Emacs 22.1 hung after delete-process]


From: Glenn Morris
Subject: Re: address@hidden: Emacs 22.1 hung after delete-process]
Date: Wed, 15 Aug 2007 23:24:22 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

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\)" <address@hidden>
> Subject: Emacs 22.1 hung after delete-process 
> To: <address@hidden>
> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]