This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Fix dup for /dev/dsp
- From: Christopher Faylor <cgf-no-personal-reply-please at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Wed, 21 Jul 2004 13:00:15 -0400
- Subject: Re: Fix dup for /dev/dsp
- References: <40FE87D6.3C89AE1F@phumblet.no-ip.org>
- Reply-to: cygwin-patches at cygwin dot com
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
>mislead you.
If this is all that's required, you could use an __attribute__((shared))
option to share the state among all processes.
cgf