From: Mark Eichin Date: Tue, 9 Aug 1994 04:10:16 +0000 (+0000) Subject: posix signals X-Git-Tag: krb5-1.0-beta4.2~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4a3d4a9ab94ee45d9a60b4f4dc5d697ac9b0825b;p=krb5.git posix signals git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4084 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/telnet/ChangeLog b/src/appl/telnet/telnet/ChangeLog index c6febc2b9..b7c7262c1 100644 --- a/src/appl/telnet/telnet/ChangeLog +++ b/src/appl/telnet/telnet/ChangeLog @@ -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. diff --git a/src/appl/telnet/telnet/configure.in b/src/appl/telnet/telnet/configure.in index 471bab620..29d624d0e 100644 --- a/src/appl/telnet/telnet/configure.in +++ b/src/appl/telnet/telnet/configure.in @@ -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 ], +[sigset_t x], +AC_DEFINE(POSIX_SIGNALS))) +AC_HAVE_LIBRARY(socket) +AC_HAVE_LIBRARY(nsl) AC_OUTPUT(Makefile,[EXTRA_RULES]) diff --git a/src/appl/telnet/telnet/sys_bsd.c b/src/appl/telnet/telnet/sys_bsd.c index 8442e145c..d12c2f348 100644 --- a/src/appl/telnet/telnet/sys_bsd.c +++ b/src/appl/telnet/telnet/sys_bsd.c @@ -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;