Does X wait for child processes at logout?

Charlie Kravetz cjk at teamcharliesangels.com
Mon Feb 23 22:11:16 UTC 2009


On Mon, 23 Feb 2009 20:46:43 +0000
Chris G <cl at isbd.net> wrote:

> When you logout of X (i.e. you return to the gdm login screen) does X
> wait for all child processes to terminate?  In addition does every
> child process get a SIGTERM signal sent to it?
> 
> I'm asking because I want to execute some shutdown functions
> automatically when I logout and if X *does* wait then this would be a
> way to do it.
> 

You can add things to the /etc/gdm/PostSession/Default script to be
executed when you log out.

Good luck,

-- 
Charlie Kravetz 
Linux Registered User Number 425914          [http://counter.li.org/]
Never let anyone steal your DREAM.           [http://keepingdreams.com]




More information about the ubuntu-users mailing list