task_for_pid never returns KERN_SUCCESS, any ideas?
task_for_pid never returns KERN_SUCCESS, any ideas?
- Subject: task_for_pid never returns KERN_SUCCESS, any ideas?
- From: Gary Fung <email@hidden>
- Date: Mon, 12 Jan 2009 12:54:15 -0500
Tried to retrieve task_info_t by using task_for_pid but the following
code does not equate to true
task_t task = MACH_PORT_NULL;
struct task_basic_info tinf;
if(task_for_pid(mach_task_self(), pid, &task) == KERN_SUCCESS) {
... //not reached
}
mach_task_self returns non null value so that should be ok. But
task_for_pid does not return anything for &task. Any ideas? I've
iterated through all the pids currently running, same result. Ran it on
Leopard.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden