From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cedric Le Goater Subject: Re: [PATCH] An attempt to have an unlimitedly extendable sys_clone Date: Tue, 15 Jan 2008 14:52:02 +0100 Message-ID: <478CBA82.9000400@fr.ibm.com> References: <478CAC32.4080809@openvz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <478CAC32.4080809-GEFAQzZX7r8dnm+yROfE0A@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: Pavel Emelyanov Cc: Linux Containers List-Id: containers.vger.kernel.org > @@ -1132,8 +1161,15 @@ static struct task_struct *copy_process(unsigned long clone_flags, > /* Perform scheduler related setup. Assign this task to a CPU. */ > sched_fork(p, clone_flags); > > + if (clone_flags & CLONE_NEWCLONE) { > + carg = get_long_clone_arg(child_tidptr); > + retval = PTR_ERR(carg); > + if (IS_ERR(carg)) > + goto bad_fork_cleanup_policy; > + } > + it's probably better do to : carg = get_long_clone_arg(child_tidptr); if (IS_ERR(carg)) { retval = PTR_ERR(carg); goto bad_fork_cleanup_policy; } C.