The more important use will be tmux(1) and other active window size
controlling programs. There seems little risk in exposing this small
tty setting alongside the tcsetattr() family.
ok millert
-/* $OpenBSD: kern_pledge.c,v 1.11 2015/10/11 01:56:56 guenther Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.12 2015/10/11 15:25:39 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
return (ENOTTY);
case TIOCGPGRP:
case TIOCGWINSZ: /* various programs */
+ case TIOCSWINSZ:
if (fp->f_type == DTYPE_VNODE && (vp->v_flag & VISTTY))
return (0);
break;