From 359dc0dba7e93744c583b431d428de62fb8e0c90 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Tue, 30 Oct 2018 14:18:35 -0400 Subject: [PATCH] 14360: Fix mismatched flag name, -nodetach -> -detached. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- services/crunch-run/background.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/crunch-run/background.go b/services/crunch-run/background.go index 1f98d3791c..57f770ae19 100644 --- a/services/crunch-run/background.go +++ b/services/crunch-run/background.go @@ -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} -- 2.30.2