[ROOT] How to stop ROOT programs when the user log off

From: Reiner Rohlfs (Reiner.Rohlfs@obs.unige.ch)
Date: Tue Oct 29 2002 - 11:17:31 MET


Hi Root team

I have several interactive programs with displays (TCanvas) and GUIs
(TGMainFrame).

When the user quits its session and logs off or a remote connection died these
programs continue to run and use a lot of CPU. Our system manager assumes that
the link to the X11 - server is broken and the programs gets a lot of messages
(errors) from X11. 
These programs have a timer to update the graphs automatically as soon as new
data are available. That means even without user action the programs try to
update the screen from time to time.

Is there a possibility to determine in the compiled programs if the screen is
still available and to terminate the program when the user log off?

We use ROOT versin 3.03.07 on sun solaris and linux.

	Thanks
	Reiner



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:16 MET