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: Pedro Alves <palves at redhat dot com>
- To: Patrick Palka <patrick at parcs dot ath dot cx>, gdb-patches at sourceware dot org
- Date: Thu, 04 Sep 2014 11:45:14 +0100
- 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>
On 08/30/2014 08:40 PM, Patrick Palka wrote:
> 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.
OK.
Thanks,
Pedro Alves