X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 5 Nov 2007 16:57:23 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cygwin stable and cvs snapshot - fork() bug
Message-ID: <20071105155723.GA21097@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20071029083512.GA4224@calimero.vinschen.de> <C0ED6A2866953E4487135B5DFCFF89A501C04A65@hmsx21.pnet.ch> <4725D656.5090303@cygwin.com> <C0ED6A2866953E4487135B5DFCFF89A501C375CD@hmsx21.pnet.ch> <ba40711f0710311126m6ae84f5ci4e7e481869ed63a7@mail.gmail.com> <20071101095835.GG31224@calimero.vinschen.de> <20071105102147.GI31224@calimero.vinschen.de> <ba40711f0711050443h6733c234o3c2d4a78f410360d@mail.gmail.com> <ba40711f0711050649g3276b097yb88ae247b1cfdc29@mail.gmail.com> <20071105151726.GA20309@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20071105151726.GA20309@calimero.vinschen.de>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Nov  5 16:17, Corinna Vinschen wrote:
> On Nov  5 09:49, Lev Bishop wrote:
> > It indeed seems this is behaviour not described in SuSv3. But several
> > unices support (some variant of) this behaviour. At least linux,
> > freebsd, hp-ux, solaris 10 mention it in their man pages, and openbsd
> > and netbsd seem to implement it that way even though they don't
> > describe it in the man pages.
> 
> Yeah, we're using the FreeBSD code so the behaviour is already as
> in Linux, as I mentioned in my previous mail.
> 
> > A further linux extension: In addition to all the above, Linux goes
> > even further and still allows you to attach the segment even after
> > marking it for deletion.
> > [...]
> > Freebsd (since version 5.2) has a sysctl kern.ipc.shm_allow_removed
> > which seems to allow you to force the linux behaviour on this issue.
> > Openbsd automatically does it (only) when running linux binaries via
> > compat_linux(8).
> 
> Since we're using FreeBSD code, there's a variable shm_allow_removed in
> the code already which allows this behaviour.  There's just no way right
> now to set it.  It's always zero.  It would be quite easy to add a
> cygserver.conf setting for this, though.

I've applied two patches which change shmctl(IPC_RMID) to the BSD/Linux
behaviour as well as adding a kern.ipc.shm_allow_removed option to the
/etc/cygserver.conf file.  Please give it a try.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

