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
1 changed files with 1 additions and 1 deletions

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()