Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Yao Qi <qiyaoltc@gmail.com>
To: Pedro Alves <palves@redhat.com>
Cc: Yao Qi <qiyaoltc@gmail.com>,  gdb-patches@sourceware.org
Subject: Re: [PATCH] Wake up interruptible_select in remote_fileio ctrl-c handler
Date: Wed, 01 Jun 2016 13:42:00 -0000	[thread overview]
Message-ID: <864m9dxbxt.fsf@gmail.com> (raw)
In-Reply-To: <2102e16d-b52c-82da-6714-c536092dcb01@redhat.com> (Pedro Alves's	message of "Wed, 1 Jun 2016 12:52:34 +0100")

Pedro Alves <palves@redhat.com> writes:

> Basically, my thinking for the patch was:
>
>  - remote.c no longer installs a custom SIGINT handler.
>
>  - The current remote-fileio.c SIGINT handler is basically the
>    same as the default SIGINT handler (event-top.c:handle_sigint),
>    in priciple, except that instead of setting the quit flag,
>    it sets a separate flag.
>
>  - The current code can lose Ctrl-C -- there's a period
>    where SIG_IGN is installed as signal handler, for example.
>
> I think we should be able to completely remove the remote-fileio.c
> SIGINT handler, and fix these corner cases, with the patch below.
>

Yes, that is completely the right way to go.

> +
> +  /* If the user hit C-c before, pretend that it was hit right
> +     here.  */
> +  QUIT;

Why do we need this?

-- 
Yao (齐尧)


  reply	other threads:[~2016-06-01 13:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-19 14:38 Yao Qi
2016-06-01  8:35 ` Yao Qi
2016-06-01 11:52   ` Pedro Alves
2016-06-01 13:42     ` Yao Qi [this message]
2016-06-01 14:15       ` Pedro Alves
     [not found]         ` <CAH=s-PMDdhETFmMxMdbanHfRM-r13cyxiERdmaDRD5iQgZmzjA@mail.gmail.com>
2016-06-01 15:38           ` Pedro Alves

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=864m9dxbxt.fsf@gmail.com \
    --to=qiyaoltc@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@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