[cairo] [PATCH] xlib/shm: Sync the XShmAttach before removing the ShmSegment id
Chris Wilson
chris at chris-wilson.co.uk
Sat Oct 20 00:36:08 PDT 2012
On Sat, 20 Oct 2012 02:49:15 +0200, Thomas Klausner <wiz at NetBSD.org> wrote:
> On Fri, Oct 19, 2012 at 12:11:59PM +0100, Chris Wilson wrote:
> > Whilst reading through other users of XShm, it became apparent that
> > IPC_RMID behaves differently across the platforms. Linux allows
> > processes to attach to an existing ShmSegment id after a IPC_RMID, but
> > for others the IPC_RMID takes immediate effect. On those platforms
> > without a "deferred" IPC_RMID, we then need to perform the XShmAttach
> > synchronously before perfomring the IPC_RMID.
> >
> > Reported-by: Thomas Klausner <wiz at NetBSD.org>
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> > ---
> >
> > Thomas, can you please test the configure magic on your NetBSD box?
>
> Ok, I can confirm it works on the machine locally as well.
> Also, tron@ tested on his OS X machine and his problem seems gone as well.
Thanks for testing the patch, I've pushed it to master and will make a
new release over the w/e.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the cairo
mailing list