Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Feb 1998 07:52:59 +0100
From:      Michael Schuster <Michael.Schuster@utimaco.co.at>
To:        "hackers@FreeBSD.ORG" <hackers@FreeBSD.ORG>
Subject:   Re: Shared memory and signals
Message-ID:  <34DAB34B.DD7FFC63@utimaco.co.at>

next in thread | raw e-mail | index | archive | help
Dennis Rockwell <dennis@bbn.com> wrote
> On 4 Feb, Michael Schuster wrote:
> >       if (sInfo.shm_nattch > 1)
> >               shmctl (fd, IPC_RMID, NULL);
> 
> Isn't this backwards?  (nattach <= 1) 

Yes, of course. I mixed things up there. What I had in the first place
was

      if (sInfo.shm_nattch > 1)
         free_mem = FALSE;

thanks for the hint.

> Also, this looks like a race condition just waiting to be lost.

Could you elaborate?
-- 
Michael Schuster



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34DAB34B.DD7FFC63>