Re: pid vs. Process Serial Number
Re: pid vs. Process Serial Number
- Subject: Re: pid vs. Process Serial Number
- From: Rosyna <email@hidden>
- Date: Thu, 21 Sep 2006 10:50:35 -0700
1. Don't trust executable names.
2. Only processes that connect to the window server have process
serial numbers. Background daemons that don't connect do not have one.
3. You might try looking at
http://developer.apple.com/samplecode/PIDFromBSDProcessName/index.html
which is some happy fun sample code.
Ack, at 9/21/06, Brad Peterson said:
So, I figured I'd use getppid(), convert the result to
a psn, use that to get the process' name, and then
check for "cron".
But, I always get a -600 when calling
GetProcessForPID().
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden