[cairo] [PATCH] xlib/shm: Sync the XShmAttach before removing the ShmSegment id

Thomas Klausner wiz at NetBSD.org
Fri Oct 19 17:49:15 PDT 2012


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.

Thank you very much!
 Thomas


More information about the cairo mailing list