Re: [PATCH] use pid_alive in proc_pid_status

From: Linus Torvalds
Date: Sun Nov 28 2004 - 18:21:55 EST




On Sun, 28 Nov 2004, Manfred Spraul wrote:
>
> What do you think? Are you aware of further instances where p->pid is
> still used to check if a thread is alive?

Looks good, except I hate how you have a function that does a single
pointer derefence and a test.

There are cases where inline functions bloat up the code, but there are
cases where a function call is bigger than the function body. This seems
to be one of them.

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/