I write Go program that will run another Go program that will daemonize.
I am wondering how much time the first program must wait before its child process is daemonising.
cmd := exec.Command(path1)
cmd.Start()
// exit here
or
cmd := exec.Command(path1)
cmd.Run()
// exit here
or
cmd := exec.Command(path1)
cmd.Start()
time.Sleep(5 * time.Second)
// exit here
If I use cmd.Run()
what command/action in started daemon program will end "waiting" in first program.