}
// Detach acquires a lock for the given uuid, and starts the current
-// program as a child process (with -nodetach prepended to the given
+// program as a child process (with -detached prepended to the given
// arguments so the child knows not to detach again). The lock is
// passed along to the child process.
func Detach(uuid string, args []string, stdout, stderr io.Writer) int {
}
defer errfile.Close()
- cmd := exec.Command(args[0], append([]string{"-nodetach"}, args[1:]...)...)
+ cmd := exec.Command(args[0], append([]string{"-detached"}, args[1:]...)...)
cmd.Stdout = outfile
cmd.Stderr = errfile
cmd.ExtraFiles = []*os.File{lockfile}