From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 21 May 2016 00:37:46 -0700 Message-ID: From: Casey Rodarmor To: 9fans@9fans.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] Namespace inheritance between processes Topicbox-Message-UUID: 9166de24-ead9-11e9-9d60-3106f5b1d025 On Sat, May 21, 2016 at 12:26 AM, Casey Rodarmor wrote: > Hi 9 fans, > > I'm trying to figure out how namespace inheritance between process groups works. > > Let's say I have a process A which forks a child process B with the > RFNAMEG so it receives a copy of A's namespace. > > If process A then makes a change to its namespace, will process B see > that change? Or does B receive a distinct copy that A then can't > change? > > Thanks! > > Best, > Casey Also, whatever the answer is, how can I test this for myself? I was struggling to come up with a combination of commands, short of writing some C programs, which would let me have two interactive rc shells that inherit from one another, since rc doesn't have job control and new rio windows are in a new process group.