From: Mark Eichin Date: Tue, 16 Aug 1994 22:06:01 +0000 (+0000) Subject: test for vhangup X-Git-Tag: krb5-1.0-beta4.3~168 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=544b2b8794b1f07a2ba776ab11713e9a522f6f9e;p=krb5.git test for vhangup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4162 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/telnetd/ChangeLog b/src/appl/telnet/telnetd/ChangeLog index 394cce67d..81a01d043 100644 --- a/src/appl/telnet/telnetd/ChangeLog +++ b/src/appl/telnet/telnetd/ChangeLog @@ -1,3 +1,9 @@ +Tue Aug 16 18:04:58 1994 Mark Eichin (eichin@tweedledumber.cygnus.com) + + * configure.in: check for vhangup. + sys_term.c (cleanup): check for HAVE_VHANGUP. + (cleanopen): ditto. + Mon Aug 8 01:15:27 1994 Mark Eichin (eichin@cygnus.com) * utility.c (putf): don't misdeclare index/rindex, strings.h diff --git a/src/appl/telnet/telnetd/configure.in b/src/appl/telnet/telnetd/configure.in index 55d0fee76..5a81cd3c8 100644 --- a/src/appl/telnet/telnetd/configure.in +++ b/src/appl/telnet/telnetd/configure.in @@ -22,6 +22,7 @@ AC_COMPILE_CHECK([cc_t],[#include ], [cc_t foo;],,AC_DEFINE(NO_CC_T)) fi fi +AC_HAVE_FUNCS(vhangup) AC_FUNC_CHECK(grantpt,AC_DEFINE(STREAMSPTY)) AC_FUNC_CHECK(gettosbyname,AC_DEFINE(HAS_GETTOS)) AC_HEADER_CHECK(sys/filio.h,AC_DEFINE(FILIO_H)) diff --git a/src/appl/telnet/telnetd/sys_term.c b/src/appl/telnet/telnetd/sys_term.c index 1ddcf354e..9bf7de731 100644 --- a/src/appl/telnet/telnetd/sys_term.c +++ b/src/appl/telnet/telnetd/sys_term.c @@ -1235,7 +1235,9 @@ cleanopen(line) */ # if !(defined(CRAY) || defined(__hpux)) && (BSD <= 43) && !defined(STREAMSPTY) (void) signal(SIGHUP, SIG_IGN); +#ifdef HAVE_VHANGUP vhangup(); +#endif (void) signal(SIGHUP, SIG_DFL); t = open(line, O_RDWR|O_NOCTTY); if (t < 0) @@ -1782,7 +1784,9 @@ cleanup(sig) void rmut(); rmut(); +#ifdef HAVE_VHANGUP vhangup(); /* XXX */ +#endif (void) shutdown(net, 2); exit(1); # endif