The XSync is apparently necessary to ensure the XShmAttach call is
complete before doing the shmctl(...,IPC_RMID). This complicates the
shared memory removal, as it has to be done in the X error callback too,
which has no context parameter.
(I had the XSync fail when trying to run beebjit with a remote X server.)
The XSync is apparently necessary to ensure the XShmAttach call is complete before doing the shmctl(...,IPC_RMID). This complicates the shared memory removal, as it has to be done in the X error callback too, which has no context parameter.
(I had the XSync fail when trying to run beebjit with a remote X server.)