rclone/vendor/github.com/sevlyar/go-daemon/syscall_dup.go

12 lines
194 B
Go
Raw Normal View History

// +build !linux !arm64
// +build !windows
2019-06-27 11:30:45 +00:00
// +build go1.7
package daemon
2019-06-27 11:30:45 +00:00
import "golang.org/x/sys/unix"
func syscallDup(oldfd int, newfd int) (err error) {
2019-06-27 11:30:45 +00:00
return unix.Dup2(oldfd, newfd)
}