Re: Detecting login/logout?
Re: Detecting login/logout?
- Subject: Re: Detecting login/logout?
- From: Wade Tregaskis <email@hidden>
- Date: Sat, 1 Nov 2003 15:46:40 +1100
(2) Programs that are launched via the StartupItems mechanism are in a
different Mach bootstrap context than normal processes. When the user
logs in, your program will be killed, because it has created Mach
ports (by linking and using certain CoreFoundation functions) and
those ports will be stale when the new Mach context is brought > forward.
Are you sure the existing context is destroyed? How do normal programs
(e.g. system daemons) survive? I was under the impression that you
just couldn't communicate (with mach ports) between login processes and
user processes.
These are both precautions there since NextStep to prevent people from
creating programs that look like the loginwindow and simply sniff
passwords.
This makes sense, but only implies the first limitation you mentioned,
not the second.
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.