This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Specify SA_RESTART when registering the SIGWINCH signal handler
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Patrick Palka <patrick at parcs dot ath dot cx>
- Cc: Pedro Alves <palves at redhat dot com>, gdb-patches at sourceware dot org
- Date: Sun, 23 Nov 2014 14:14:06 +0400
- Subject: Re: [PATCH] Specify SA_RESTART when registering the SIGWINCH signal handler
- Authentication-results: sourceware.org; auth=none
- References: <1409427656-27102-1-git-send-email-patrick at parcs dot ath dot cx> <540842BA dot 2040608 at redhat dot com> <CA+C-WL8WeVKgEcFnjZQdLUyWo1ieUVAAD3gkR6g8euVqQnApmQ at mail dot gmail dot com>
> Could someone commit this patch (attached) for me?
Done.
> From c152b0da4286424050457f66c067923fcf8d330a Mon Sep 17 00:00:00 2001
> From: Patrick Palka <patrick@parcs.ath.cx>
> Date: Sat, 30 Aug 2014 15:33:08 -0400
> Subject: [PATCH] Specify SA_RESTART when registering the SIGWINCH signal
> handler
>
> SA_RESTART allows system calls to be restarted across a signal handler.
> By specifying this flag we fix the issue where if the user is being
> prompted to answer yes or no, and the terminal gets resized in the
> meantime, the prompt will think that the user sent an EOF and so it will
> take the default action for that prompt (in the case of the quit prompt,
> it will quit GDB).
>
> * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
> registering the signal handler.
I just added a small "gdb/ChangeLog:" line above your ChangeLog
entry, to make it clear which ChangeLog file we're referring to.
Thanks for the patch,
--
Joel