I could not know when the command will return the result, and a default timer is set. Then I have this question.
sigChan := make(os.Signal, 1)
signal.Notify(sigChan, SIGCHLD)
cmd := exec.Command(...)
cmd.Start()
select {
case <-time.After(1e9):
// kill the process and release?
case <-sigChan:
// the process has been terminated
}