On Thu, Mar 07, 2002 at 10:05:09PM +0100, Rainer Canavan wrote:
> is mode 666 really such a good idea? Well anyway, looks like a signal 
> handler is needed to clean up afterwards, unless  there's another way out.

That line you deleted was the cleanup mecnanism.  :)

Try this patch.  It explicitly sync with the X server before marking the
pages for deletion.   I think it'll work.

--- xlib_driver.c       6 Mar 2002 10:09:47 -0000       1.56
+++ xlib_driver.c       7 Mar 2002 23:57:26 -0000
@@ -515,6 +515,7 @@
              ERROR("ARGH!  Can't attach shared memory segment\n");
              have_shmem = 0;
            }
+           XSync(S->display, False);
            shmctl(S->shm[i]->shmid, IPC_RMID, 0);
          }



 - 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

iD8DBQE8h/66ysXuytMhc5ERAq/LAJwOWfAuBTJnsclw3or1iMfC7PVZ/ACdESbH
S9xBjBjRkGFq1sbHA5Y61uk=
=E96P
-----END PGP SIGNATURE-----



Reply via email to