You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Take this as LongTerm or Thinking)
It would be fine to have a fork and daemonize calls,
something like this:
func Daemonize()
{
os.Stdin.Close();
os.Stdout.Close();
os.Stderr.Close();
pid := Fork();
// In parent
if pid != 0 {
os.Exit(0);
}
// In child
syscall.Setsid()
....
}