posix signals
authorMark Eichin <eichin@mit.edu>
Tue, 9 Aug 1994 04:10:16 +0000 (04:10 +0000)
committerMark Eichin <eichin@mit.edu>
Tue, 9 Aug 1994 04:10:16 +0000 (04:10 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4084 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/telnet/telnet/ChangeLog
src/appl/telnet/telnet/configure.in
src/appl/telnet/telnet/sys_bsd.c

index c6febc2b94000f6b2bf3e26f4af76cbddb812ab1..b7c7262c177a41c7a330b9fe7583b8f6c54d9c5e 100644 (file)
@@ -1,3 +1,9 @@
+Tue Aug  9 04:02:28 1994  Mark Eichin  (eichin@tess-turbo)
+
+       * configure.in: test for -lsocket, -lnsl, POSIX_SIGNALS
+       * sys_bsd.c: use POSIX_SIGNALS.
+       * commands.c: don't use Berzerkely-style string functions.
+
 Sat Aug  6 18:05:42 1994  Mark Eichin  (eichin@cygnus.com)
 
        * commands.c: in_systm.h is *not* broken on linux with 4.5 libc.
index 471bab6206fd4b46e390d4afbb108614c78b1ed4..29d624d0e2dec912383fd976d2a0a75e1ec532da 100644 (file)
@@ -25,4 +25,11 @@ AC_FUNC_CHECK(cgetent,AC_DEFINE(HAS_CGETENT))
 AC_FUNC_CHECK(setupterm,AC_DEFINE(HAS_SETUPTERM))
 AC_HAVE_LIBRARY(-lndbm)
 AC_HAVE_LIBRARY(-ldbm)
+AC_FUNC_CHECK(sigprocmask,
+AC_COMPILE_CHECK([sigset_t],
+[#include <signal.h>],
+[sigset_t x],
+AC_DEFINE(POSIX_SIGNALS)))
+AC_HAVE_LIBRARY(socket)
+AC_HAVE_LIBRARY(nsl)
 AC_OUTPUT(Makefile,[EXTRA_RULES])
index 8442e145c9c485730ff4f872c74f7b9de6d6540f..d12c2f348b23087656b6c70581bd038a7eb7fb84 100644 (file)
@@ -669,7 +669,16 @@ TerminalNewMode(f)
 #endif
 #ifdef SIGTSTP
        (void) signal(SIGTSTP, SIG_DFL);
+#ifdef POSIX_SIGNALS
+       {
+         sigset_t tmask;
+         sigemptyset(&tmask);
+         sigaddtoset(&tmask, SIGTSTP);
+         sigprocmask(SIG_UNBLOCK, &tmask, (sigset_t*)0);
+       }
+#else
        (void) sigsetmask(sigblock(0) & ~(1<<(SIGTSTP-1)));
+#endif
 #endif /* SIGTSTP */
 #ifndef USE_TERMIO
        ltc = oltc;