[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: musings on session service mgmt
- From: David Zeuthen <davidz redhat com>
- To: Discussions about development for the Fedora desktop <fedora-desktop-list redhat com>
- Subject: Re: musings on session service mgmt
- Date: Fri, 04 Jan 2008 11:36:24 -0500
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]