Descriptionsyscall: fix leakage of file descriptors after a fork on Plan 9
Instead of trying to emulate the racy method used on Unix, we
simply read the list of open file descriptors from the dup(3)
device once we're inside the child and close everything that
we don't want to keep.
This change was inspired by similar code in the 9front version
of page(1).
Also remove all uses of the ForkLock since it's unneccesary.
Fixes issue 7118.
Fixes issue 5605.
Patch Set 1 #Patch Set 2 : diff -r fbcb2b86201e https://code.google.com/p/go/ #
Total comments: 1
Patch Set 3 : diff -r 9c65fe4ce5a2 https://code.google.com/p/go/ #Patch Set 4 : diff -r 1fda0c956e3f https://code.google.com/p/go/ #Patch Set 5 : diff -r 1fda0c956e3f https://code.google.com/p/go/ #
Total comments: 2
MessagesTotal messages: 13
|