Messages in this thread | | | Subject | Re: RFC [patch 13/34] PID Virtualization Define new task_pid api | From | Arjan van de Ven <> | Date | Sun, 22 Jan 2006 16:55:25 +0100 |
| |
> > A pointer to a task_struct while it kind of sort of works. Is not > a good solution. The problem is that in a lot of cases we register > a pid to get a signal or something similar and then we never unregister > it. So by using a pointer to a trask_struct you effectively hold the > process in memory forever.
this is not right. Both the PID and the task struct have the exact same lifetime rules, they HAVE to, to guard against pid reuse problems.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |