This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patchv3] Fix SIGTERM signal safety (PR gdb/15358)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]