changeset 30218:9247ff6e841c

Call XSync after XShmAttach to avoid a possible race-condition with shmctl. Patch from FreeBSD ports.
author reimar
date Sun, 10 Jan 2010 14:03:10 +0000
parents 6d40c92e081e
children f08c45c46433
files gui/wm/ws.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/wm/ws.c	Sun Jan 10 13:55:55 2010 +0000
+++ b/gui/wm/ws.c	Sun Jan 10 14:03:10 2010 +0000
@@ -1172,6 +1172,7 @@
    win->xImage->data=win->Shminfo.shmaddr;
    win->Shminfo.readOnly=0;
    XShmAttach( wsDisplay,&win->Shminfo );
+   XSync(wsDisplay, False);
    shmctl( win->Shminfo.shmid,IPC_RMID,0 );
   }
   else