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

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Mon Nov 04 2002 - 17:16:37 MET


Hi Reiner,

  in these cases you should get errors in the X11 error handler
functions (RootX11IOErrorHandler). Please check if these are called and
in the case we can see how these can be used to terminate the session.
If they are not called in these cases we need to look somewhere else
(directly on the server socket).

Cheers, Fons.



On Tue, 2002-10-29 at 11:17, Reiner Rohlfs wrote:
> 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
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



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