DragonFly commits List (threaded) for 2007-10
DragonFly BSD
DragonFly commits List (threaded) for 2007-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sys/dev/sound/pcm dsp.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 8 Oct 2007 11:11:53 -0700 (PDT)

:hasso       2007/10/08 10:55:00 PDT
:
:DragonFly src repository
:
:  Modified files:
:    sys/dev/sound/pcm    dsp.c 
:  Log:
:  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@.

    Nice catch.  I changed the NBIO stuff a while back so the threading code 
    could issue NBIO reads and writes without actually setting the descriptor
    to non-blocking.  This removed interference with stdio tty descriptors 
    (which are all shared) when running threaded programs.  So drivers
    should definitely not be trying to track that ioctl themselves any more.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]