[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:1.9.2.15) 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.
debugsig3.patch
Description: Text document
signature.asc
Description: OpenPGP digital signature
- Re: [PATCH] Unconditional quit on SIGUSR2, (continued)
- Re: [PATCH] Unconditional quit on SIGUSR2, Daniel Colascione, 2011/03/28
- Re: [PATCH] Unconditional quit on SIGUSR2, Lennart Borgman, 2011/03/28
- Re: [PATCH] Unconditional quit on SIGUSR2, Daniel Colascione, 2011/03/28
- Re: [PATCH] Unconditional quit on SIGUSR2, Lennart Borgman, 2011/03/28
- In praise of font-lock (Was: Re: [PATCH] Unconditional quit on SIGUSR2), Daniel Colascione, 2011/03/28
- Re: In praise of font-lock (Was: Re: [PATCH] Unconditional quit on SIGUSR2), Lennart Borgman, 2011/03/28
- Re: [PATCH] Unconditional quit on SIGUSR2, chad, 2011/03/28
- Re: [PATCH] Unconditional quit on SIGUSR2, Eli Zaretskii, 2011/03/28
- Re: [PATCH] Unconditional quit on SIGUSR2, Daniel Colascione, 2011/03/28
- Re: [PATCH] Unconditional quit on SIGUSR2, chad, 2011/03/28
- Re: [PATCH] Unconditional quit on SIGUSR2,
Daniel Colascione <=
- Re: [PATCH] Unconditional quit on SIGUSR2, Daniel Colascione, 2011/03/29
- Re: [PATCH] Unconditional quit on SIGUSR2, Tom Tromey, 2011/03/29
- Re: [PATCH] Unconditional quit on SIGUSR2, Stefan Monnier, 2011/03/29
- Re: [PATCH] Unconditional quit on SIGUSR2, Tom Tromey, 2011/03/29
- Re: [PATCH] Unconditional quit on SIGUSR2, Stefan Monnier, 2011/03/29