commit-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Inetutils branch, master, updated. inetutils-1_9_1-183-g88ff7


From: Mats Erik Andersson
Subject: [SCM] GNU Inetutils branch, master, updated. inetutils-1_9_1-183-g88ff7a4
Date: Fri, 05 Oct 2012 22:49:41 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".

The branch, master has been updated
       via  88ff7a44098fd6e26ddaa4fc7a61e5ed6f6e1678 (commit)
      from  d3771eb02dee934f0f38abb944a8b53a5233999a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=88ff7a44098fd6e26ddaa4fc7a61e5ed6f6e1678


commit 88ff7a44098fd6e26ddaa4fc7a61e5ed6f6e1678
Author: Mats Erik Andersson <address@hidden>
Date:   Fri Oct 5 23:54:25 2012 +0200

    telnet: Signal action portability.

diff --git a/ChangeLog b/ChangeLog
index dd37c65..de25dc7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-10-05  Mats Erik Andersson  <address@hidden>
+
+       telnet: Reliability fix caused by OpenSolaris,
+       where SIGWINCH regularly got lost.
+
+       * telnet/sys_bsd.c (sys_telnet_init): New variable SA.
+       [SIGWINCH]: Install handler with sigaction().
+       [SIGTSTP]: Likewise.
+       [SIGINFO]: Likewise.
+
 2012-10-04  Mats Erik Andersson  <address@hidden>
 
        * ping/libping.c (ping_set_dest) [HAVE_DECL_GETADDRINFO]:
diff --git a/telnet/sys_bsd.c b/telnet/sys_bsd.c
index e133cce..eb610d1 100644
--- a/telnet/sys_bsd.c
+++ b/telnet/sys_bsd.c
@@ -1013,17 +1013,25 @@ ayt (int sig)
 void
 sys_telnet_init (void)
 {
+  struct sigaction sa;
+
+  sa.sa_flags = SA_RESTART;
+  sigemptyset (&sa.sa_mask);
+
   signal (SIGINT, intr);
   signal (SIGQUIT, intr2);
   signal (SIGPIPE, deadpeer);
 #ifdef SIGWINCH
-  signal (SIGWINCH, sendwin);
+  sa.sa_handler = sendwin;
+  (void) sigaction (SIGWINCH, &sa, NULL);
 #endif
 #ifdef SIGTSTP
-  signal (SIGTSTP, susp);
+  sa.sa_handler = susp;
+  (void) sigaction (SIGTSTP, &sa, NULL);
 #endif
 #ifdef SIGINFO
-  signal (SIGINFO, ayt);
+  sa.sa_handler = ayt;
+  (void) sigaction (SIGINFO, &sa, NULL);
 #endif
 
   setconnmode (0);

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog        |   10 ++++++++++
 telnet/sys_bsd.c |   14 +++++++++++---
 2 files changed, 21 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]