From c562e85afa8cdeae5253e959d1e366f99ef15ac1 Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 15 Feb 2022 03:53:58 +0000 Subject: [PATCH] unifdef TIOCHPCL, 4.3BSD compat ioctl ok deraadt@ guenther@ --- sys/kern/tty.c | 9 +-------- 1 file changed, 1 insertion(+), 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); -- 2.20.1