summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/installUpgrade.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-10-19 18:37:50 +0000
committerjkh <jkh@FreeBSD.org>1995-10-19 18:37:50 +0000
commit6d13f9a708f62766aa05501fc6b9b931ff1e726f (patch)
treecfc1793e8a4897a5fcec15084ce9fe55cbb6545b /usr.sbin/sysinstall/installUpgrade.c
parent45cf2943d04dcb0b87c6372e28b812ce8e6dee59 (diff)
downloadFreeBSD-src-6d13f9a708f62766aa05501fc6b9b931ff1e726f.zip
FreeBSD-src-6d13f9a708f62766aa05501fc6b9b931ff1e726f.tar.gz
Sync.
Diffstat (limited to 'usr.sbin/sysinstall/installUpgrade.c')
-rw-r--r--usr.sbin/sysinstall/installUpgrade.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/usr.sbin/sysinstall/installUpgrade.c b/usr.sbin/sysinstall/installUpgrade.c
index 15dfddf..8d56032 100644
--- a/usr.sbin/sysinstall/installUpgrade.c
+++ b/usr.sbin/sysinstall/installUpgrade.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: install.c,v 1.71.2.38 1995/10/18 05:01:55 jkh Exp $
+ * $Id: installUpgrade.c,v 1.1 1995/10/19 16:15:40 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -320,20 +320,11 @@ installUpgrade(char *str)
if (!(child = fork())) {
int i, fd;
struct termios foo;
- extern int login_tty(int);
- for (i = 0; i < 3; i++)
- close(i);
- fd = open("/dev/ttyv0", O_RDWR);
- ioctl(0, TIOCSCTTY, &fd);
- dup2(0, 1);
- dup2(0, 2);
- if (login_tty(fd) == -1)
- msgDebug("Can't set the controlling terminal.\n");
signal(SIGTTOU, SIG_IGN);
- if (tcgetattr(fd, &foo) != -1) {
+ if (tcgetattr(0, &foo) != -1) {
foo.c_cc[VERASE] = '\010';
- if (tcsetattr(fd, TCSANOW, &foo) == -1)
+ if (tcsetattr(0, TCSANOW, &foo) == -1)
msgDebug("Unable to set the erase character.\n");
}
else
OpenPOWER on IntegriCloud