Re: Detecting login/logout?
Re: Detecting login/logout?
- Subject: Re: Detecting login/logout?
- From: j o a r <email@hidden>
- Date: Sat, 1 Nov 2003 13:40:16 +0100
On 2003-11-01, at 12.59, Wade Tregaskis wrote:
The problem with quitting the daemon between logins and logouts is
that the cost of establishing and configuring the networking is rather
high, not to mention the inconvenience of having to shut down any
executing tasks and transport them to another machine, etc.
Don't mix up startup items and login items. Startup items are executed
by root in the root context, login items are executed by the user in
the login context. Startup items are killed when the system is shut
down, login items when the user logs out.
Your daemon should of course be a startup item - ie. not affected by
users logging in and out. Any user level applications you might have
can connect to and communicate with the daemon when a user is logged
in.
Documentation on startup items (Panther):
<file:///Developer/Documentation/MacOSX/Conceptual/BPSystemStartup/
index.html>
j o a r
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.