From 9c994bbee7420861b5dc83e71e50fc43d7f6650b Mon Sep 17 00:00:00 2001 From: Vee Zhang Date: Tue, 9 Jun 2020 05:43:31 +0000 Subject: [PATCH] internal/poll: correct the comment dupCloseOnExecUnixOld to dupCloseOnExecOld --- src/internal/poll/fd_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/poll/fd_unix.go b/src/internal/poll/fd_unix.go index 85c79bbebb..4872fa9851 100644 --- a/src/internal/poll/fd_unix.go +++ b/src/internal/poll/fd_unix.go @@ -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()