> I would prefer it not be there, but can see the convenience of detecting
> that an app has immediately crashed. If we can find another way to do
> that via process inspection, that would be better in my view.
>
The problem can be summarised into this code:
// this command exits
cmd := exec.Command("true")
out, err := cmd.StdoutPipe()
err = cmd.Start()
fmt.Println(err)
// this is nil! no error!
// even worse! attempted to detect
err = cmd.Process.Signal(syscall.Signal(0))
// this is nil too! no error!
fmt.Println(err)
So, how can I check the process is actually terminated ?