current_proc() issue on leopard
current_proc() issue on leopard
- Subject: current_proc() issue on leopard
- From: Praveen Kumar <email@hidden>
- Date: Thu, 20 Mar 2008 14:38:00 +0530
Hi,
The following code gives the current process name.
struct proc *p = current_proc();
p->p_comm // contains current process name
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.
- M Praveen Kumar.
_______________________________________________
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