Re: Processes
Re: Processes
- Subject: Re: Processes
- From: Eric Long <email@hidden>
- Date: Thu, 14 Apr 2005 08:55:46 -0700
> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden