pledge_ioctl_check() will do the killing if neccessary; if it returns,
authorderaadt <deraadt@openbsd.org>
Sun, 11 Oct 2015 23:13:02 +0000 (23:13 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 11 Oct 2015 23:13:02 +0000 (23:13 +0000)
commitf089fe39b3f190e7dcccedd076e9633a5d1aea62
tree5f2f0309062693283b1d18e4d2b532224a946afc
parentb2490958e9d66b1bc83845daec043fc28dab8680
pledge_ioctl_check() will do the killing if neccessary; if it returns,
that is an errno to pass up to the calling system call instead. test
case is "who < /dev/null", via ttyname().
sys/kern/sys_generic.c