syscall_dup_pre17.go 189 B

12345678910111213
  1. // +build !linux !arm64
  2. // +build !windows
  3. // +build !go1.7
  4. package daemon
  5. import (
  6. "syscall"
  7. )
  8. func syscallDup(oldfd int, newfd int) (err error) {
  9. return syscall.Dup2(oldfd, newfd)
  10. }