diff options
author | 2016-07-10 00:39:31 +0000 | |
---|---|---|
committer | 2016-07-10 00:39:31 +0000 | |
commit | 215f7db8ce9a81f2d50024f8c269cfc7f385f3b1 (patch) | |
tree | bc82a511306919a24c5827e11e586c0390b675fd /sys/kern/tty.c | |
parent | Paranoia: check KTRPOINT() before calling ktrpledge() to guarantee we (diff) | |
download | wireguard-openbsd-215f7db8ce9a81f2d50024f8c269cfc7f385f3b1.tar.xz wireguard-openbsd-215f7db8ce9a81f2d50024f8c269cfc7f385f3b1.zip |
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@
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 4 |
1 files changed, 1 insertions, 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: |