Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
Cc: pedro_alves@portugalmail.pt, gdb-patches@sourceware.org
Subject: Re: [patch] tui: initialize signal handler
Date: Sat, 22 Sep 2007 18:30:00 -0000	[thread overview]
Message-ID: <uir62zh72.fsf@gnu.org> (raw)
In-Reply-To: <46F54D25.3050603@linux.vnet.ibm.com> (message from Carlos 	Eduardo Seo on Sat, 22 Sep 2007 14:13:09 -0300)

> Date: Sat, 22 Sep 2007 14:13:09 -0300
> From: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
> CC: gdb-patches@sourceware.org, eliz@gnu.org
> 
> +#ifdef SIGWINCH
>  /* SIGWINCH signal handler for the tui.  This signal handler is always
>     called, even when the readline package clears signals because it is
>     set as the old_sigwinch() (TUI only).  */
> @@ -813,6 +816,20 @@ tui_sigwinch_handler (int signal)
>    tui_set_win_resized_to (TRUE);
>  }
>  
> +/* Initializes SIGWINCH signal handler for the tui.  */
> +void
> +tui_initialize_win (void)
> +{
> +#ifdef HAVE_SIGACTION
> +  struct sigaction old_winch;
> +  memset (&old_winch, 0, sizeof (old_winch));
> +  old_winch.sa_handler = &tui_sigwinch_handler;
> +  sigaction (SIGWINCH, &old_winch, NULL);
> +#else
> +  signal (SIGWINCH, &tui_sigwinch_handler);
> +#endif
> +}
> +#endif

This is fine.  Thanks.


  reply	other threads:[~2007-09-22 18:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-22  1:24 Carlos Eduardo Seo
2007-09-22  7:34 ` Eli Zaretskii
2007-09-22 10:44 ` Pedro Alves
2007-09-22 17:13   ` Carlos Eduardo Seo
2007-09-22 18:30     ` Eli Zaretskii [this message]
2007-09-22 18:54     ` Pedro Alves
2007-09-22 19:23       ` Carlos Eduardo Seo
2007-09-22 23:10         ` Daniel Jacobowitz
2007-09-22 23:53           ` Carlos Eduardo Seo
2007-09-29  0:10             ` Carlos Eduardo Seo
2007-09-29  0:29               ` Daniel Jacobowitz
2007-10-02 16:51             ` Ulrich Weigand

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=uir62zh72.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=cseo@linux.vnet.ibm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro_alves@portugalmail.pt \
    /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