From: Joel Brobecker <brobecker@adacore.com>
To: "dpc@ucore.info" <dpc@ucore.info>
Cc: Tristan Gingold <gingold@adacore.com>,
Pedro Alves <pedro@codesourcery.com>,
gdb@sourceware.org, Mike Frysinger <vapier@gentoo.org>
Subject: Re: gdb + remote qemu, Ctrl-C does not work
Date: Wed, 02 Mar 2011 15:04:00 -0000 [thread overview]
Message-ID: <20110302150359.GB2513@adacore.com> (raw)
In-Reply-To: <AANLkTimJFgP3_bjSQ78=sziy1q1t1e1VKUTS=fLfnNiK@mail.gmail.com>
> > Usually background processes don't get C-c.
>
> I am not sure, but I'd guess so. But what Pedro Alves says would
> explained everything perfectly.
That's only the case with interactive shells! In non-interactive
shell sessions (typically a script), background process are still
launched with the same process group as the parent script. Since
the SIGINT is propagated to all processes sharing the foreground
process group ID, this should explain why qemu is receiving the
SIGINT as well.
--
Joel
next prev parent reply other threads:[~2011-03-02 15:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTimvhnQs_4gTkaU_xfgjnm0G=Qkm-ZdzVYJ9nmfK@mail.gmail.com>
2011-03-01 14:48 ` dpc
2011-03-01 18:35 ` Mike Frysinger
2011-03-01 22:52 ` dpc
2011-03-01 23:50 ` Mike Frysinger
2011-03-02 7:29 ` dpc
2011-03-02 9:45 ` Pedro Alves
2011-03-02 12:29 ` dpc
2011-03-02 12:49 ` Pedro Alves
2011-03-02 13:07 ` Tristan Gingold
2011-03-02 14:17 ` Pedro Alves
2011-03-02 14:24 ` Tristan Gingold
2011-03-02 14:26 ` dpc
2011-03-02 15:04 ` Joel Brobecker [this message]
2011-03-02 16:12 ` Andreas Schwab
2011-03-02 10:12 ` Andreas Schwab
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=20110302150359.GB2513@adacore.com \
--to=brobecker@adacore.com \
--cc=dpc@ucore.info \
--cc=gdb@sourceware.org \
--cc=gingold@adacore.com \
--cc=pedro@codesourcery.com \
--cc=vapier@gentoo.org \
/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