-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: use Unshare on Linux #1954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
Try submitting a CL. http://golang.org/doc/contribute.html |
Hello, please take a look at http://golang.org/cl/5246052/ |
In related news, it seems you can't really use Unshare once goroutines have been started. iant: """ The unshare system call effectively undoes parts of the clone system call. The clone system call is used to create new threads. So I would expect the unshare system call to only affect the calling thread. I would not expect it to affect all threads in a process. That seems to more or less match the high level description in http://www.kernel.org/doc/Documentation/unshare.txt , although I agree that matters are not entirely clear. Since goroutines are free to move between threads (unless you call runtime.LockOSThread), and since the Go runtime creates new threads as needed, I don't think there is any reliable way to use syscall.Unshare in a Go program. """ |
CL https://golang.org/cl/23233 mentions this issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by jdnurmi@qwe.cc:
Attachments:
The text was updated successfully, but these errors were encountered: