Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751085AbWBBOL2 (ORCPT ); Thu, 2 Feb 2006 09:11:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751083AbWBBOL1 (ORCPT ); Thu, 2 Feb 2006 09:11:27 -0500 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:54445 "EHLO ebiederm.dsl.xmission.com") by vger.kernel.org with ESMTP id S1751088AbWBBOL0 (ORCPT ); Thu, 2 Feb 2006 09:11:26 -0500 To: Greg Cc: Linus Torvalds , Hubertus Franke , Dave Hansen , Greg KH , Alan Cox , "Serge E. Hallyn" , Arjan van de Ven , Linux Kernel Mailing List , Cedric Le Goater Subject: Re: RFC [patch 13/34] PID Virtualization Define new task_pid api References: <20060117143258.150807000@sergelap> <20060117143326.283450000@sergelap> <1137511972.3005.33.camel@laptopd505.fenrus.org> <20060117155600.GF20632@sergelap.austin.ibm.com> <1137513818.14135.23.camel@localhost.localdomain> <1137518714.5526.8.camel@localhost.localdomain> <20060118045518.GB7292@kroah.com> <1137601395.7850.9.camel@localhost.localdomain> <43D14578.6060801@watson.ibm.com> <43E0E1D3.5000803@fr.ibm.com> <43E20E31.2030601@fr.ibm.com> From: ebiederm@xmission.com (Eric W. Biederman) Date: Thu, 02 Feb 2006 07:09:27 -0700 In-Reply-To: <43E20E31.2030601@fr.ibm.com> (gkurz@fr.ibm.com's message of "Thu, 02 Feb 2006 14:50:41 +0100") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1239 Lines: 37 Greg writes: >> Well that assertion will fail. >> At that point getppid() will return 0, and getpid() will return 1. >> >> Processes getting confused is their own problem. >> > > This flavour of clone should be used with great care then since it breaks the > usual unix process semantics. :) Do you know of a flavor of clone (besides fork) that doesn't share that property? For the most part I am not breaking the usual process semantics I work very hard to preserve it but simply which pids you see are different. Which what would be expected. >> Now there will be a pid that the parent sees that will not be 0. >> And that is what the parent will see in the context of wait. >> >> In my code I introduced a wid (wait id) for that purpose. >> > > Is it possible to see the code ? git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/linux-2.6-ns.git/ The tree is still at the proof of concept level but it does come fairly close to what has been discussed. Eric - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/