Setting fcntl(F_SETOWN) for a pipe failed with inappropriate ioctl
authorbluhm <bluhm@openbsd.org>
Wed, 21 Oct 2015 16:09:13 +0000 (16:09 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 21 Oct 2015 16:09:13 +0000 (16:09 +0000)
commite4bed001e3846d1f10dd3dbda8ec679984dc7046
tree9a6028650d26d0f1f20552df3e79c4130b01c328
parentdc548fa222164f320e06084fcca5a74744c824dd
Setting fcntl(F_SETOWN) for a pipe failed with inappropriate ioctl
for device.  In sys_fcntl() the ioctl(TIOCSPGRP) is called, but the
pipe expects SIOCSPGRP.  Sockets have a specal case for the same
reason, so adapt the special code for pipes.
OK millert@
sys/kern/kern_descrip.c