Question about CLONE_CLEARTID and thread group leader

From: Jamie Lokier (
Date: Mon Sep 16 2002 - 21:46:25 EST

Dear Ingo,

CLONE_CLEARTID was created so that a thread can notify its partner
threads that its stack may by freed or reused. It is needed because the
stack isn't free until the exit() system call begins.

One question has been bothering me for a while: what about the thread
group leader's stack? These days, isn't it the case that the group
leader is supposed to be equivalent to the other threads? If so, how
does it exit and release its own stack -- or do we understand that the
group leader, as a one-off exception, has to block signals before exiting?

-- Jamie
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Sep 23 2002 - 22:00:18 EST