site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com User-agent: Microsoft-Entourage/11.1.0.040913
I forget the exact details, but it's something to do with getting the group-leader pid I think. The log-in session will be a group leader. You need to find which one is at the "console" (not THAT console) and which ones are remote logins.
Start by having a look at man page for "ps" - I think that will explain most of it.
Thanks. Actually, this turned out to be much simpler to deal with than I was making it out to be. I got it stuck in my head that I had to identify a SecuritySessionId. But for the particular need I have, in this case, I can just look at a process's kinfo_procP->kp_eproc.e_pcred.p_ruid to see if it matches the current user. Eric _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com