site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Organization: Oracle Corporation User-agent: Thunderbird 2.0.0.19 (Windows/20081209) mib[0] = CTL_KERN; mib[1] = KERN_PROC; mib[2] = KERN_PROC_PID; mib[3] = pid; sysctl(mib, 4, &kp, &len, NULL, 0); Thanks. Rohitash _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Hi, I am trying to check the existence of a process through sysctl ( CTL_KERN ) . I am using the below construct : In the case that the pid is not around , what's the documented return value for sysctl , -1 or 0 , for Mac OS X 10.5 ? Is the behaviour same for Mac OS X 10.4 too ? This email sent to site_archiver@lists.apple.com