mirror of
https://github.com/golang/go
synced 2024-11-18 06:44:49 -07:00
internal/poll: correct the comment dupCloseOnExecUnixOld to dupCloseOnExecOld
This commit is contained in:
parent
cacac8bdc5
commit
9c994bbee7
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user