Re: heavy handed exit() in latest BK

From: Linus Torvalds (
Date: Sat Feb 08 2003 - 22:37:31 EST

On Sat, 8 Feb 2003, Roland McGrath wrote:
> Ah. Deciding state should be treated as a bitmask is not so hot when

Oops. Indeed. TASK_RUNNING isn't a bit at all, it's a lack of sleep.

Turning the logic the other way around:

        /* Ignore processes that are dead or stopped (except for SIGKILL) */
        mask = TASK_ZOMBIE | TASK_DEAD;
        if (sig != SIGKILL)
                mask != TASK_STOPPED;

and testing for !((p)->state & mask) should fix it. The mask ends up being
the states that are _not_ good to send signals for ;)


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 : Sat Feb 15 2003 - 22:00:21 EST