This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patchv3] Fix SIGTERM signal safety (PR gdb/15358)
- From: Doug Evans <dje at google dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 17 Mar 2014 15:35:21 -0700
- Subject: Re: [patchv3] Fix SIGTERM signal safety (PR gdb/15358)
- Authentication-results: sourceware.org; auth=none
- References: <20140314183709 dot GA28050 at host2 dot jankratochvil dot net> <20140314184535 dot GA30853 at host2 dot jankratochvil dot net> <21284 dot 44419 dot 745786 dot 47756 at ruffy dot mtv dot corp dot google dot com> <20140316135334 dot GA30698 at host2 dot jankratochvil dot net>
On Sun, Mar 16, 2014 at 6:53 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> gdb/
> 2014-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> PR gdb/15358
> * defs.h (sync_quit_force_run): New declaration.
> (QUIT): Check also SYNC_QUIT_FORCE_RUN.
> * event-top.c (async_sigterm_handler): New declaration.
> (async_sigterm_token): New variable.
> (async_init_signals): Create also async_sigterm_token.
> (async_sigterm_handler): New function.
> (sync_quit_force_run): New variable.
> (handle_sigterm): Replace quit_force call by other calls.
> * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
>
> gdb/testsuite/
> 2014-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> PR gdb/15358
> * gdb.base/gdb-sigterm.c: New file.
> * gdb.base/gdb-sigterm.exp: New file.
Fine by me.
Thanks.