Logout

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Mon Dec 22 17:03:27 CET 2003


> if I log out in XFce4 (without using a session manager) all applications
> are killed. But how are they killed? Is there any possibility to detect
> this killing in the application and do some final cleanup?
> 
> I tried SIGTERM and SIGINT, this works fine with Ctrl-C but not with
> XFce4 logout.

Most of the time, their are "killed" implicitly by closing the 
connection to the Xserver. That is, the "killing" is detected by Xlib or 
the Windowing Toolkit and usually confirmed by a call to exit(). So 
cleanup operations should simply register with atexit() at program startup.

> Thanks for information!
> Regards,
> Bernhard

regards,
Benedikt

-- 
NetBSD Operating system:                       http://www.NetBSD.org/
pkgsrc "Work in progress":                  http://pkgsrc-wip.sf.net/
XFce desktop environment:                        http://www.xfce.org/
German Unix-AG Association:                   http://www.unix-ag.org/




More information about the Xfce4-dev mailing list