Eran Kravitz
2005-09-14 01:55:13 UTC
I was playing with the Lookup_Thread function in Sys_Wait() and I
believe it simply returns a kernel_thread pointer to the thread you look
for ONLY IF it has a parent. Otherwise it returns null. Is that correct?
If so, would that be a reliable way to figure out whether a process has
a parent or not? Or since there are other cases in which Lookup_Thread
might return null (although they are not likely, for example, process
simply not found for whatever reason) we shouldn't rely on that?
Thank you.
believe it simply returns a kernel_thread pointer to the thread you look
for ONLY IF it has a parent. Otherwise it returns null. Is that correct?
If so, would that be a reliable way to figure out whether a process has
a parent or not? Or since there are other cases in which Lookup_Thread
might return null (although they are not likely, for example, process
simply not found for whatever reason) we shouldn't rely on that?
Thank you.