Add ability to daemonize program, update sample config, README.md, add .gitignore
This commit is contained in:
14
vendor/github.com/sevlyar/go-daemon/syscall_dup_pre17.go
generated
vendored
Normal file
14
vendor/github.com/sevlyar/go-daemon/syscall_dup_pre17.go
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
//go:build (!linux || !arm64) && !windows && !go1.7
|
||||
// +build !linux !arm64
|
||||
// +build !windows
|
||||
// +build !go1.7
|
||||
|
||||
package daemon
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func syscallDup(oldfd int, newfd int) (err error) {
|
||||
return syscall.Dup2(oldfd, newfd)
|
||||
}
|
||||
Reference in New Issue
Block a user