From 215f7db8ce9a81f2d50024f8c269cfc7f385f3b1 Mon Sep 17 00:00:00 2001 From: millert Date: Sun, 10 Jul 2016 00:39:31 +0000 Subject: [PATCH] POSIX specifies that if a processing calling tcsetpgrp() is in the background it shall receive SIGTTOU. Handle TIOCSPGRP like we do the other tty ioctls that change the terminal. OK deraadt@ guenther@ --- sys/kern/tty.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/kern/tty.c b/sys/kern/tty.c index b64ad17ec84..14b2ab76317 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.131 2016/05/17 23:43:47 bluhm Exp $ */ +/* $OpenBSD: tty.c,v 1.132 2016/07/10 00:39:31 millert Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -731,9 +731,7 @@ ttioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct proc *p) case TIOCSETD: case TIOCSETAF: case TIOCSETAW: -#ifdef notdef case TIOCSPGRP: -#endif case TIOCSTAT: case TIOCSTI: case TIOCSWINSZ: -- 2.20.1