Re: [PATCH] do_wait fix for 2.6.10-rc1
From: Sripathi Kodi
Date: Thu Nov 11 2004 - 06:29:00 EST
Linus Torvalds wrote:
On Wed, 10 Nov 2004, Dinakar Guniguntala wrote:Linus,
How about if we set the flag only in the cases when the exit state is not
either TASK_DEAD or TASK_ZOMBIE.
Why TASK_DEAD? We can't reap such a process anyway, no? But yes, I agree
with the approach.
Yes, when we see a process in TASK_DEAD state, we can't reap it. We
shouldn't set the flag in this scenario because we have not really found
an eligible child (one in any state other than TASK_DEAD). So we need to
go back to parsing the list of children as if we have not found an
eligible child at all.
Please let us know if this argument is correct and if we have reached
the final shape for this fix.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/