Add ability to daemonize program, update sample config, README.md, add .gitignore
This commit is contained in:
13
vendor/github.com/sevlyar/go-daemon/syscall_dup3.go
generated
vendored
Normal file
13
vendor/github.com/sevlyar/go-daemon/syscall_dup3.go
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
//go:build linux && (riscv64 || arm64)
|
||||
// +build linux
|
||||
// +build riscv64 arm64
|
||||
|
||||
package daemon
|
||||
|
||||
import "syscall"
|
||||
|
||||
func syscallDup(oldfd int, newfd int) (err error) {
|
||||
// linux_arm64 platform doesn't have syscall.Dup2
|
||||
// so use the nearly identical syscall.Dup3 instead.
|
||||
return syscall.Dup3(oldfd, newfd, 0)
|
||||
}
|
||||
Reference in New Issue
Block a user