Why my multi-threaded X11 app with LinuxThreads crashes?
> Wolfram Gloger wrote: > > > > jenoll@cs.nmsu.edu (Jeff Noll) wrote: > > > > > I’m making an X client that connects to a tcp socket. I’m using a > > > thread to continually read from that socket connection and a text > > > widget to sent to the socket. (an X telnet program that looks kind of > > > like ncftp, seperate input/output windows). When i run this at school > > > under solaris it seems to be fine, but when i take it home and try it > > > under linus using linuxthreads 0.5 it crashes when i start entering > > > into the text window. > > > > Crash as in `fatal’ X errors ? A while ago I had a similar experience > > when trying to create a multi-threaded X11 app with LinuxThreads. It > > was quite easy to debug though: the LinuxThreads libpthread library > > lets all threads get individual errno values (like they should), as > > long as all sources are compiled with _REENTRANT defined. > > > > The X11 libs (at least in XFree86-3.2) are by default not compiled in > > this way, unf