Merge branch 'daemonize' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jake Hillion 2021-03-26 21:18:00 +00:00
commit 1c754e01b5

View File

@ -90,6 +90,14 @@ func main() {
panic(err)
}
pidFile, err := os.Create(o.PidFile)
if err != nil {
panic(err)
}
if _, err := fmt.Fprintf(pidFile, "%d", process.Pid); err != nil {
panic(err)
}
_ = process.Release()
return
}