20 Mar
2008
20 Mar
'08
9:08 a.m.
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Hi, The following code gives the current process name. struct proc *p = current_proc(); p->p_comm // contains current process name - M Praveen Kumar. _______________________________________________ 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... On Tiger, it is working fine, but on leopard, p_comm is empty. Please let me know if there are alternate ways to get the current process name. This email sent to site_archiver@lists.apple.com