summaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-02-15 03:53:59 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-02-15 03:53:59 +0000
commit4793b52348693deb6a876390d47b70c418d1d68d (patch)
tree808d1569c2dbbac296969179e04b18a3c84c7793 /sys/kern/tty.c
parent56415d628ac37135795aebf82668a6ecd51eef88 (diff)
unifdef TIOCHPCL, 4.3BSD compat ioctl
ok deraadt@ guenther@
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index ae6cffb56ed..e5e527f9b50 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.173 2021/12/15 15:30:47 visa Exp $ */
+/* $OpenBSD: tty.c,v 1.174 2022/02/15 03:53:58 jsg Exp $ */
/* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */
/*-
@@ -852,13 +852,6 @@ ttioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct proc *p)
return (ENOTTY);
*(int *)data = tp->t_session->s_leader->ps_pid;
break;
-#ifdef TIOCHPCL
- case TIOCHPCL: /* hang up on last close */
- s = spltty();
- SET(tp->t_cflag, HUPCL);
- splx(s);
- break;
-#endif
case TIOCNXCL: /* reset exclusive use of tty */
s = spltty();
CLR(tp->t_state, TS_XCLUDE);