musings on session service mgmt
David Zeuthen
davidz at redhat.com
Fri Jan 4 16:36:24 UTC 2008
On Fri, 2008-01-04 at 17:23 +0100, Nils Philippsen wrote:
> On Fri, 2008-01-04 at 11:10 -0500, Colin Walters wrote:
> > On Fri, 2008-01-04 at 16:14 +0100, Nils Philippsen wrote:
> >
> > > Not in the least, there are programs which are supposed to stay running
> > > even when you log out -- screen, vncserver, nohup'ed processes etc.
> >
> > No one is talking about changing the semantics of "nohup".
>
> Perhaps I'm a bit slow, but how would it not do this if it relies on the
> inheritance of a previously non-existent environment variable that needs
> to be deleted if a process shall not be killed on session exit?
The way someone would opt out would be to do this
unsetenv("XDG_SESSION_COOKIE");
if (fork() <= 0)
exit (1);
very early in the program.
David
More information about the Fedora-desktop-list
mailing list