[Top][All Lists]

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

Re: [PATCH] Unconditional quit on SIGUSR2

From: Daniel Colascione
Subject: Re: [PATCH] Unconditional quit on SIGUSR2
Date: Tue, 29 Mar 2011 10:55:40 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: Gecko/20110303 Thunderbird/3.1.9

On 3/28/11 3:20 PM, chad wrote:
> If the method works out in practice, how would people feel about a
> patch to emacsclient adding a flag to send such signals?

That would be fine. For NT Emacs, the best approach would be for
emacsclient to suspend all threads in the target Emacs process, then use
CreateRemoteThread to inject code into a running Emacs.  This code would
trip the debugger the same way the signal handler in my patch does, then
resume the rest of Emacs.

Below is another version of the patch.  I've changed the code so that we
instead inspect a new debug-on-special-event variable, which by default
is the symbol sigusr2.  This way, we can extend the mechanism and use
another kind of special event for platforms that lack signals.

Attachment: debugsig3.patch
Description: Text document

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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