test for vhangup
authorMark Eichin <eichin@mit.edu>
Tue, 16 Aug 1994 22:06:01 +0000 (22:06 +0000)
committerMark Eichin <eichin@mit.edu>
Tue, 16 Aug 1994 22:06:01 +0000 (22:06 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4162 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/telnet/telnetd/ChangeLog
src/appl/telnet/telnetd/configure.in
src/appl/telnet/telnetd/sys_term.c

index 394cce67de68e1c70c1282ce5738ccf24f153e84..81a01d04366b42a1e340b9a2af4e8fb1656c2d4a 100644 (file)
@@ -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
index 55d0fee76ed475e6e7b75938d291e9b0b566612b..5a81cd3c8740c2aa37a1443cfe0f93220b6945be 100644 (file)
@@ -22,6 +22,7 @@ AC_COMPILE_CHECK([cc_t],[#include <termio.h>],
 [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))
index 1ddcf354e3def1e15f44d6c2ea9b95a7d279817f..9bf7de7313824e1a423be21f1017c1d35690c338 100644 (file)
@@ -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