From ca978caee7a39cfbfe2b5fdbbfa1942a561d94a2 Mon Sep 17 00:00:00 2001 From: Gabe Rosenhouse Date: Tue, 15 Mar 2016 08:37:00 -0700 Subject: [PATCH] Update docstring on WithNetNS --- ns/ns.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ns/ns.go b/ns/ns.go index 97c6a1e9..4f0814f1 100644 --- a/ns/ns.go +++ b/ns/ns.go @@ -66,7 +66,8 @@ func WithNetNSPath(nspath string, lockThread bool, f func(*os.File) error) error // Changing namespaces must be done on a goroutine that has been // locked to an OS thread. If lockThread arg is true, this function // locks the goroutine prior to change namespace and unlocks before -// returning +// returning. If the closure returns an error, WithNetNS attempts to +// restore the original namespace before returning. func WithNetNS(ns *os.File, lockThread bool, f func(*os.File) error) error { if lockThread { runtime.LockOSThread()