14360: Fix mismatched flag name, -nodetach -> -detached.
authorTom Clegg <tclegg@veritasgenetics.com>
Tue, 30 Oct 2018 18:18:35 +0000 (14:18 -0400)
committerTom Clegg <tclegg@veritasgenetics.com>
Tue, 30 Oct 2018 18:20:28 +0000 (14:20 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

services/crunch-run/background.go

index 1f98d3791cf4486f1a0672b0c39b5a0be0de159b..57f770ae194aee974e667eecea3b4b9a99d1040a 100644 (file)
@@ -32,7 +32,7 @@ type procinfo struct {
 }
 
 // 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 {
@@ -62,7 +62,7 @@ func detach(uuid string, args []string, stdout, stderr io.Writer) error {
        }
        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}