1
0
mirror of https://github.com/golang/go synced 2024-11-18 03:54:50 -07:00

internal/poll: correct the comment dupCloseOnExecUnixOld to dupCloseOnExecOld

This commit is contained in:
Vee Zhang 2020-06-09 05:43:31 +00:00
parent cacac8bdc5
commit 9c994bbee7

View File

@ -479,7 +479,7 @@ func DupCloseOnExec(fd int) (int, string, error) {
return dupCloseOnExecOld(fd)
}
// dupCloseOnExecUnixOld is the traditional way to dup an fd and
// dupCloseOnExecOld is the traditional way to dup an fd and
// set its O_CLOEXEC bit, using two system calls.
func dupCloseOnExecOld(fd int) (int, string, error) {
syscall.ForkLock.RLock()