Re: The PID of an Application?
Re: The PID of an Application?
- Subject: Re: The PID of an Application?
- From: Jens Alfke <email@hidden>
- Date: Mon, 25 Jan 2016 10:29:55 -0800
> On Jan 25, 2016, at 9:53 AM, Dave <email@hidden> wrote:
>
> Is the PID of an Application 120% cast-iron guaranteed not to change during the Application’s life span?
Yes. The PID is what uniquely identifies a process during its lifespan.
(Technically it’s possible for running code to see its PID change if the process forks, but it’s infeasible to fork anything but a bare-metal process on a Darwin-based OS, so you’ll never have to worry about that. I’m sort of afraid to mention this because it may turn into an off-topic rathole, but I’m also afraid that if I don’t mention it someone will be all “But what about forking, huh?” ;-)
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden