Once upon a time, Matthew Garrett <mjg(a)redhat.com> said:
It's actually remarkably difficult to handle the "My X
server has gone
away" case - traditional xlib behaviour is to just abort() your process.
You can do some funky stuff involving signal handlers and longjmp, but
by and large it's not practical to save app state when the server is
killed. Especially if your application isn't an X one and just happens
to run in a console.
Huh, vim manages to handle this just fine. Maybe the emacs folks that
don't like Ctrl+Alt+Backspace should give it a try...
--
Chris Adams <cmadams(a)hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.