Re: [PATCH 2/2] signals: replace p->pid == 1 check with a check for task_child_reaper

From: Eric W. Biederman
Date: Thu Jul 17 2008 - 14:02:31 EST


Daniel Hokka Zakrisson <daniel@xxxxxxxxx> writes:

> p->pid == 1 is insufficient when there are multiple pid namespaces.
> Instead, check whether the task is in the current task's
> child reaper's thread group.

We should just drop the check for init as it is redundant.

Eric

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