Linked by Thom Holwerda on Sat 15th Aug 2009 17:55 UTC
X11, Window Managers Over the past couple of months, and especially over the past couple of weeks, I've been working very hard to write and complete my thesis. I performed all the work on Windows 7, but now that the thesis is finally done, submitted, and accepted, I installed Ubuntu - and immediately I was reminded of why I do not do any serious work on Linux: the train wreck that is X.org.
Thread beginning with comment 378739
To view parent comment, click here.
To read all comments associated with this story, please click here.
Dima
Member since:
2006-04-06

It's a little known fact that the X server crashing does not require all X apps to crash. They can actually disconnect and reconnect if they so choose. None of the toolkits, however, support this.


Does Xlib support disconnects and reconnects? No it doesn't. It also makes it impossible for a higher-level toolkit, such as Qt or Gtk+, to handle this. So whose fault is it now?

Reply Parent Score: 1

siride Member since:
2006-01-02

XEmacs can disconnect and reconnect. If there is a bug in XLib causing abort()s for a disconnect, that can easily be changed (very easily). Now your point is moot.

Reply Parent Score: 2

Dima Member since:
2006-04-06

XEmacs can disconnect and reconnect.

No it doesn't:
xemacs: Fatal I/O Error 11 (Resource temporarily unavailable) on display connection "localhost:10.0"
after 2202 requests (2201 known processed) with 15 events remaining.
Autosaving and exiting...

Ok, it handled the disconnect by saving the file - but it certainly didn't try to reconnect. It exited, just like any other X app.

If there is a bug in XLib causing abort()s for a disconnect, that can easily be changed (very easily). Now your point is moot.

How old is Xlib? Why hasn't this been fixed?

Edited 2009-08-16 02:36 UTC

Reply Parent Score: 1

thecwin Member since:
2006-01-04

I believe error handling was one of the things XCB better supports. Xlib was a terrible API with known severe problems for a long time, but most things are switching to Xcb now.

Reply Parent Score: 3