Fix dup for /dev/dsp
Wed Jul 21 17:01:00 GMT 2004
On Wed, Jul 21, 2004 at 11:12:22AM -0400, Pierre A. Humblet wrote:
>Here is another idea.
>As noted in your comments, the children cannot change any of the
>parameters (because they don't have access to the parent). To fix that
>I am wondering if it wouldn't be better to use a FileMapping that can
>be shared between parent and children, instead of an archetype.
>Apparently that's what fhandler_tape does. See mtinfo_init () in
>fhandler_tape.cc Perhaps that share can be created on demand when the
>dsp is opened, instead of creating it for every process as tape does.
>My understanding is very superficial, I apologize in advance if I
If this is all that's required, you could use an __attribute__((shared))
option to share the state among all processes.
More information about the Cygwin-patches