Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Doug Evans <dje@google.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] Don't immediately SIGTERM the child of "target remote |".
Date: Thu, 24 Nov 2011 06:20:00 -0000	[thread overview]
Message-ID: <CADPb22TJTd12k_UCEAddoG+oXX+OAT1D7BS701=bSR4PzokVxA@mail.gmail.com> (raw)
In-Reply-To: <8339de9npv.fsf@gnu.org>

On Wed, Nov 23, 2011 at 7:57 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Wed, 23 Nov 2011 16:00:51 -0800 (PST)
>> From: dje@google.com (Doug Evans)
>>
>> +#if defined (HAVE_SIGACTION) && defined (SA_RESTART)
>> +      {
>> +     struct sigaction sa, osa;
>> +     sa.sa_handler = sigalrm_handler;
>> +     sigemptyset (&sa.sa_mask);
>> +     sa.sa_flags = 0;
>> +     sigaction (SIGALRM, &sa, &osa);
>> +     ofunc = osa.sa_handler;
>> +      }
>> +#else
>> +      ofunc = (void (*)()) signal (SIGALRM, sigalrm_handler);
>> +#endif
>
> SIGALRM may not be defined (e.g., on MS-Windows).
>

Thanks.  That's easy enough to #ifdef around.
[Things could work as they do today #ifndef SIGALRM.]


  reply	other threads:[~2011-11-24  6:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-24  0:01 Doug Evans
2011-11-24  0:09 ` Doug Evans
2011-11-24  3:57 ` Eli Zaretskii
2011-11-24  6:20   ` Doug Evans [this message]
2011-11-27 20:40 ` Jan Kratochvil
2011-11-27 22:23   ` Doug Evans
2011-12-01 19:46     ` [RFA] " Doug Evans
2011-12-01 19:50       ` Jan Kratochvil
2011-12-01 20:13         ` Doug Evans
2011-12-01 20:20           ` Jan Kratochvil
2011-12-14 21:17             ` Doug Evans

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='CADPb22TJTd12k_UCEAddoG+oXX+OAT1D7BS701=bSR4PzokVxA@mail.gmail.com' \
    --to=dje@google.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.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