[M3devel] XSharedMem.m3

Jay K jay.krell at cornell.edu
Sun Sep 6 16:04:55 CEST 2009


The file m3-ui/ui/src/xvbt/XSharedMem.m3 has a bug.

The function IsSameHost is wrong.

What does it matter either way?
Can the code that uses it just depend on the shared
memory stuff working? Or is it important to know
if really on the same machine?

That is, can it just be hardcoded as TRUE and
 back progatate that assumption to its callers?

Apple's X11 does like this:

bash-3.2$ echo $DISPLAY
/tmp/launch-gTYtJF/:0

which causes this IsSameHost code to fail.

You can see I put in a band-aid a while ago,
but it isn't really fixed.

Why have I never heard of this problem in other X code?
Because X seems to stink so I don't pay much attention to it..
Because X is little used on Macs?
Little used in general?
..

(note that Interix seems to lack some of this XSharedMem stuff,
therefore so far no Modula-3 gui apps on it. Now that I see
this optionality though, maybe it is easy to workaround?)
 

 - Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090906/5d1978ea/attachment-0001.html>


More information about the M3devel mailing list