[Devel] Re: C/R minisummit notes (namespace naming)

Eric W. Biederman ebiederm at xmission.com
Thu Jul 24 02:55:37 PDT 2008

Currently we have three possibilities on how to name pid namespaces.
- indirect via processes
- pids
- names in the filesystem

We discussed this a bit in the hallway track and pids are look like the way
to go. Pavel has a patch in progress to help sort this out.

The practical problem we have today is that we need a way to wait for the network
namespace in particular and namespaces in general to exit.

At a first glance waitid(P_NS, <pid>,....) looks like a useful way to achieve
this.  After looking at wait a bit more it really is fundamentally just an exit
status reaper of zombies, that has the option of blocking when the zombies
do not yet exist.  In any kind of event loop you would wait for SIGCHLD either
as a signal or with signalfd.

So how shall we wait for a namespace to exit?  My brainstorm tonight suggests
inotify_add_watch(ifd, "/proc/ns/<pid>", IN_DELETE);

Containers mailing list
Containers at lists.linux-foundation.org

More information about the Devel mailing list