From c167d8a3fabef2289593ea48c8ffc69a46a5f18d Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 30 Sep 1999 05:19:58 +0000 Subject: cull, cull, cull --- usr.bin/ssh/pty.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'usr.bin/ssh/pty.c') diff --git a/usr.bin/ssh/pty.c b/usr.bin/ssh/pty.c index b985eb1b3d6..d9b7968077c 100644 --- a/usr.bin/ssh/pty.c +++ b/usr.bin/ssh/pty.c @@ -14,7 +14,7 @@ Allocating a pseudo-terminal, and making it the controlling tty. */ #include "includes.h" -RCSID("$Id: pty.c,v 1.3 1999/09/30 05:03:05 deraadt Exp $"); +RCSID("$Id: pty.c,v 1.4 1999/09/30 05:19:57 deraadt Exp $"); #include "pty.h" #include "ssh.h" @@ -24,12 +24,6 @@ RCSID("$Id: pty.c,v 1.3 1999/09/30 05:03:05 deraadt Exp $"); #undef HAVE_DEV_PTMX #endif -#ifdef HAVE_DEV_PTMX -#include -#include -#include -#endif /* HAVE_DEV_PTMX */ - #ifndef O_NOCTTY #define O_NOCTTY 0 #endif @@ -252,17 +246,6 @@ void pty_make_controlling_tty(int *ttyfd, const char *ttyname) else { close(fd); -#ifdef HAVE_VHANGUP - signal(SIGHUP, SIG_IGN); - vhangup(); - signal(SIGHUP, SIG_DFL); - fd = open(ttyname, O_RDWR); - if (fd == -1) - error("pty_make_controlling_tty: reopening controlling tty after vhangup failed for %.100s", - ttyname); - close(*ttyfd); - *ttyfd = fd; -#endif /* HAVE_VHANGUP */ } } -- cgit v1.2.3