Re: zombie with CLONE_THREAD

From: Linus Torvalds
Date: Thu Jul 01 2004 - 11:52:50 EST




On Thu, 1 Jul 2004, Roland McGrath wrote:
> >
> > list_for_each_safe(..)
>
> You know, I never really looked at the macros, but seeing "_safe" here made
> me think that exactly this is what it's safe from. That was obviously a
> silly thing to think, since it's clearly just safe from removing the list
> element during the iteration.

Right. I'd love to say it's "always safe", but obviously that is not
technically possible. I agree that the name is misleading, and it is more
about "can_delete" than about being "safe".

Anyway, I applied your/Andrea's patch (I happened to read email backwards
this morning, so I saw Andrea's first).

Linus
-
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/