Don't do call vhangup() if system doesn't have it
authorTheodore Tso <tytso@mit.edu>
Sun, 25 Feb 1996 02:35:35 +0000 (02:35 +0000)
committerTheodore Tso <tytso@mit.edu>
Sun, 25 Feb 1996 02:35:35 +0000 (02:35 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7537 dc483132-0cff-0310-8789-dd5450dbe970

src/util/pty/ChangeLog
src/util/pty/vhangup.c

index 6a9f4e6f5f5bbee5c509665c7fd729fe092572e7..f35c9a13061784ad999c6fd73dec6d2fa27c895f 100644 (file)
@@ -1,3 +1,7 @@
+Sat Feb 24 21:34:58 1996  Theodore Y. Ts'o  <tytso@dcl>
+
+       * vhangup.c (ptyint_vhangup): Don't do call vhangup() if system
+               doesn't have it.
 
 Sat Jan 27 01:13:34 1996  Mark Eichin  <eichin@cygnus.com>
 
index 25dd9cc23f30188e9cc3689279060e1bf2bd706c..09d83c7be7afb9a341c400462a8dc564942b379d 100644 (file)
@@ -23,6 +23,7 @@
 
 void ptyint_vhangup()
 {
+#ifdef HAVE_VHANGUP
 #ifdef POSIX_SIGNALS
     struct sigaction sa;
     /* Initialize "sa" structure. */
@@ -42,4 +43,5 @@ void ptyint_vhangup()
        vhangup();
        signal(SIGHUP, SIG_DFL);
 #endif
+#endif
 }