Horst von Brand wrote: > > > How about first finding out why their buggy JRE detects whether an > > > address is local by trying to bind() to it :-) > > > I don't know why the JRE does it, but I've seen that sort of thing used > > to decide whether to try X shared memory. > > Could you explain the logic behid that?! (a) connect to DISPLAY (b) ask for MIT-SHM extension; answer = yes (c) create shared memory segment (d) tell X server to open shared memory segment (e) oops, X server connected to wrong segment on remote machine! Checking for a local X connection was a buggy way to avoid that. The right way, of course, is to fill your new SHM segment with some random number, get the X server to connect, and read the contents over the X connection to see if you and the server found the same SHM segment. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: bind() allowed to non-local addresses kuznet
- Re: bind() allowed to non-local addresses Christoph Rohland
- Re: bind() allowed to non-local addresses Matt Peterson
- Re: bind() allowed to non-local addresses Andi Kleen
- Re: bind() allowed to non-local addresses Alan Cox
- RE: bind() allowed to non-local addresses David Schwartz
- Re: bind() allowed to non-local addresses Alberto Bertogli
- Re: bind() allowed to non-local addresses David S. Miller
- Re: bind() allowed to non-local addresses Jamie Lokier
- Re: bind() allowed to non-local addresses Horst von Brand
- Re: bind() allowed to non-local address... Jamie Lokier
- Re: bind() allowed to non-local addresses H. Peter Anvin
- Re: bind() allowed to non-local addresses Matt Peterson
- Re: bind() allowed to non-local addresses David S. Miller
- Re: bind() allowed to non-local address... Matt Peterson
- Re: bind() allowed to non-local ad... David S. Miller
- Re: bind() allowed to non-loca... Matt Peterson
- Re: bind() allowed to non-loca... Andi Kleen
- Re: bind() allowed to non-loca... David S. Miller
- Re: bind() allowed to non-loca... Felix von Leitner
- Re: bind() allowed to non-loca... David S. Miller