Re: [PATCH] mingw: make mingw_signal return the correct handler
- From
Erik Faye-Lund <kusmabite@gmail.com>
- Date
- Jun 10, 2013, 11:37 UTC
- Message-ID
- <CABPQNSZYuXWCOXYD=v_0axsj95bPQdVznUcC9usnT=FU2-j6tQ@mail.gmail.com>
- In-Reply-To
- <51B568A1.9090409@viscovery.net>
On Mon, Jun 10, 2013 at 7:48 AM, Johannes Sixt <j.sixt@viscovery.net> wrote:
Show 26 quoted lines
> From: Erik Faye-Lund <kusmabite@gmail.com> > > Returning the SIGALRM handler for SIGINT is not very useful. > > Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> > Signed-off-by: Johannes Sixt <j6t@kdbg.org> > --- > Am 6/7/2013 16:20, schrieb Erik Faye-Lund: >> On Fri, Jun 7, 2013 at 3:07 PM, Johannes Sixt <j.sixt@viscovery.net> wrote: >>> BTW, isn't mingw_signal() bogus in that it returns the SIGALRM handler >>> even if a SIGINT handler is installed? >> >> Yep, that's a bug. Thanks for noticing. > > This is your patch to address it. > >> I've pushed out a branch here that tries to address these issues, but >> I haven't had time to test them. I'll post the series when I have. In >> the mean time: >> >> https://github.com/kusma/git/tree/win32-signal-raise > > Concerning the other two patches: > > * SIGINT: perhaps handle only the SIG_DFL case (for the exit code) and > forward all other cases to MSVCRT?
Perhaps. I'll have to think a bit about it, but it might very well be the sanest approach, as long as it doesn't break git_terminal_prompt (which was the reason for the change in the first place). I can't of the top of my head understand why it should, though.
> * SIGTERM: it papers only over a general issue and should be dropped.
Fair enough.