Commit Graph

3 Commits

Author SHA1 Message Date
Michael Marineau 008d17ae00 Fix handling of namespaces in multi-threaded processes.
GetFromPid gets the namespace of the main thread, so previously Get
returned the wrong value if run from any other thread. Add a new
GetFromThread which uses the Linux thread id and switch Get to it.
2015-01-26 16:46:24 -08:00
Vishvananda Ishaya 1e4e8a6a14 Add method for empty ns handle 2014-09-13 16:15:18 -07:00
Vishvananda Ishaya b801b0b909 Initial commit of netns package 2014-08-31 14:20:31 -07:00