title: how to keep subprocess running after program exit in golang?
body: <p>i noticed that subprocesses created using <code>Start()</code> will be terminated after program exit, for example:
  </p>
  
  <pre><code>package main
  
  import "os/exec"
  
  func main() {
      cmd := exec.Command("sh", "test.sh")
      cmd.Start()
  }
  </code></pre>
  
  <p>when <code>main()</code> exits, <code>test.sh</code> will stop running</p>