On Thu, Mar 07, 2002 at 02:37:03AM +0100, Rainer Canavan wrote:
> The following patch gets it working (for me): 
[snip] 

> I suspect that's a bad idea, since shm segments may not be relased, and,
> if I did not misread the spec, the original method of requesting it to
> be released after attaching to it looks OK. The shmctl may have to be
> called later, when the pixmap is released.

Hmm.  So the segment gets destroyed, even though it's attached.  Bug in
the SGI xlib?  Or is XFree86 just more forgiving?

       IPC_RMID    is  used  to mark the segment as destroyed. It
                   will actually  be  destroyed  after  the  last
                   detach.   (I.e., when the shm_nattch member of
                   the associated structure  shmid_ds  is  zero.)
                   The  user  must  be the owner, creator, or the
                   super-user.

Anyhow.  We're alrteady calling IPC_RMID when we close down cleanly, so
the one here is largely redundant.  The question is what happens on an
unclean shutdown.  Can you see if the shm segments are still attached if
you ctrl-c or otherwise kill freesci?  

 - Pizza 
-- 
Solomon Peachy                                    pizzaATfucktheusers.org
I ain't broke, but I'm badly bent.                           ICQ# 1318344
Patience comes to those who wait.
    ...It's not "Beanbag Love", it's a "Transanimate Relationship"...

-- Attached file included as plaintext by Listar --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8htslysXuytMhc5ERAvn+AJ4kNZ9fl5TfOQZUTPua0wGQzXo0MwCfTXxp
5uMc96bFygJROeRYngJjbkE=
=nN/r
-----END PGP SIGNATURE-----



Reply via email to