From mboxrd@z Thu Jan 1 00:00:00 1970 From: giacomo@tesio.it (Giacomo Tesio) Date: Wed, 25 Oct 2017 01:13:24 +0200 Subject: [9fans] Backgrounding a task In-Reply-To: References: <98A462DFDA6CBC03654DC58C6B063013@musolino.id.au> Message-ID: Topicbox-Message-UUID: c4396cfe-ead9-11e9-9d60-3106f5b1d025 Here it is: https://github.com/JehanneOS/jehanne/blob/master/sys/src/cmd/ns/clone.c I'll leave the modifications to the plumber for another boring night... Giacomo 2017-10-25 1:00 GMT+02:00 Chris McGee : > >> Think about multiple processes owned by multiple users running on a >> cpu server. Which processes should be allowed to join which >> namespaces? >> >> Perhaps allowing only the hostowner to join namespaces for debugging >> and administration purposes would be acceptable. > > Ah, right. What about only allowing a process to join another namespace if the user is the same? > >> This seems a contrived example. Would you really spend HOURS working >> on setting up a namespace by hand? Surely you would instead be >> working on a script that builds the namespace for you; make the >> computer do the work. Then when you mess up, you can modify the >> script, create a new window, and try again. > > Yes, good point. That's the best way to do it. Also screen file can help add commands to the script post facto. The hours term isn't so much in the development of the environment but more to do with the amount of time you could be working in that shell instance. All the while not remembering all of the things you did to the namespace and environment in that time. > > Cheers, > Chris >