Re: Detecting login/logout?
Re: Detecting login/logout?
- Subject: Re: Detecting login/logout?
- From: Wade Tregaskis <email@hidden>
- Date: Sat, 1 Nov 2003 23:45:08 +1100
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.
This is what I thought... isn't this what the original poster was
trying to do too; run a startup item, not a login item? I thought the
original replier said this wouldn't work. Somewhere I've gotten
something mixed up, evidently...
Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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.