Dragonfly always passes a flag for every IO operation depending whether
commit3e2b80a43e8d3778b07c4680c8a2719cd4c7f621
authorHasso Tepper <hasso@dragonflybsd.org>
Mon, 8 Oct 2007 17:55:00 +0000 (8 17:55 +0000)
committerHasso Tepper <hasso@dragonflybsd.org>
Mon, 8 Oct 2007 17:55:00 +0000 (8 17:55 +0000)
tree2d134783000bef5b8e0396ebf0749c02c867c134
parent89dafa21bf8fc30c6467a942b1cc5ad9f026eeb8
Dragonfly always passes a flag for every IO operation depending whether
the mode of the operation or of the fd is set to NBIO, but it doesn't
pass down fcntl() changes to the drivers. So, if you open /dev/dsp with
NONBLOCK and later fcntl it to blocking, the sound driver won't be aware
of this fact.

Fix: don't maintain this setting in the sound driver.

Requested and tested by corecode@.
sys/dev/sound/pcm/dsp.c