From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gao feng Subject: Re: [PATCH 10/11] pidns: Consolidate initialzation of special init task state Date: Wed, 21 Nov 2012 10:56:54 +0800 Message-ID: <50AC42F6.3090403@cn.fujitsu.com> References: <8739097bkk.fsf@xmission.com> <1353083750-3621-1-git-send-email-ebiederm@xmission.com> <1353083750-3621-10-git-send-email-ebiederm@xmission.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1353083750-3621-10-git-send-email-ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Eric W. Biederman" Cc: Linux Containers , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Andrew Morton , Oleg Nesterov List-Id: containers.vger.kernel.org on 2012/11/17 00:35, Eric W. Biederman wrote: > From: "Eric W. Biederman" > > Instead of setting child_reaper and SIGNAL_UNKILLABLE one way > for the system init process, and another way for pid namespace > init processes test pid->nr == 1 and use the same code for both. > > For the global init this results in SIGNAL_UNKILLABLE being set > much earlier in the initialization process. > > This is a small cleanup and it paves the way for allowing unshare and > enter of the pid namespace as that path like our global init also will > not set CLONE_NEWPID. > > Signed-off-by: Eric W. Biederman > --- Acked-by: Gao feng