No the problem is that when my program try to draw something in the window
of a stopped/killed xserver, it crashs. It is impossible to test if the
xserver is alive before any drawing primitive. I just would like to get an
event that the communication with the xserver is broken instead of a big
crash while I send a request to the xserver.
Bitlov


> Type: ps -ef
>
> View the process then if you're root you can kill it if it's running (I
> doubt it!)
>
> -----Original Message-----
> How to detect that the X server has been killed or stopped ?
>
> My program that use a window with the override_redirect flag set crashs
> when
> sending x request to a dead X server. I have tried to detect dead X with
> XSetErrorHandler() and XSetIOErrorHandler() but the handlers are never
> called.
> Please help.
> Thanks
> Bitlov



_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? T�l�charger MSN Messenger
http://www.ifrance.com/_reloc/m la 1�re messagerie instantan�e de France

_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86

Reply via email to