From: Daniel Jacobowitz <drow@false.org>
To: Andrew STUBBS <andrew.stubbs@st.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] SIGTERM handler
Date: Fri, 25 Nov 2005 18:11:00 -0000 [thread overview]
Message-ID: <20051125175433.GA736@nevyn.them.org> (raw)
In-Reply-To: <437B6374.1@st.com>
On Wed, Nov 16, 2005 at 04:51:00PM +0000, Andrew STUBBS wrote:
> Hi,
>
> This patch adds a handler for SIGTERM.
>
> The main purpose is to ensure that GDB quit through quit_force() and
> therefore properly disconnects from the target. This is quite important
> for our target interface and should do no harm for anybody else's.
>
> It also ensures that --return-child-result works when GDB exits this way.
>
> Thanks
>
> Andrew Stubbs
> 2005-11-16 Andrew Stubbs <andrew.stubbs@st.com>
>
> * event-top.h (async_init_signals): Add SIGTERM handler.
> (handle_sigterm): New function.
> * event-top.h (handle_sigterm): New prototype.
I'm dubious as to the value of this, but why not - patch is OK. I
never send GDB a SIGTERM, but I send it SIGKILL on a regular basis.
I guess it may get SIGTERMs during clean shutdown.
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-11-25 17:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-16 19:29 Andrew STUBBS
2005-11-25 18:06 ` Andrew STUBBS
2005-11-25 18:11 ` Daniel Jacobowitz [this message]
2005-11-25 20:13 ` Andrew STUBBS
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051125175433.GA736@nevyn.them.org \
--to=drow@false.org \
--cc=andrew.stubbs@st.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox