From c39c5e2a47dd5266796ddee4c1849c3f7d4e19a4 Mon Sep 17 00:00:00 2001 From: John Howard Date: Fri, 8 May 2015 14:15:53 -0700 Subject: [PATCH] Windows: reexec pkg supported Signed-off-by: John Howard Upstream-commit: 64715c4f33fdb98003b7fda8d1dcf9c65463de07 Component: engine --- .../engine/pkg/reexec/command_unsupported.go | 2 +- components/engine/pkg/reexec/command_windows.go | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 components/engine/pkg/reexec/command_windows.go diff --git a/components/engine/pkg/reexec/command_unsupported.go b/components/engine/pkg/reexec/command_unsupported.go index a579318e82..4adcd8f13e 100644 --- a/components/engine/pkg/reexec/command_unsupported.go +++ b/components/engine/pkg/reexec/command_unsupported.go @@ -1,4 +1,4 @@ -// +build !linux +// +build !linux,!windows package reexec diff --git a/components/engine/pkg/reexec/command_windows.go b/components/engine/pkg/reexec/command_windows.go new file mode 100644 index 0000000000..124d42fc62 --- /dev/null +++ b/components/engine/pkg/reexec/command_windows.go @@ -0,0 +1,14 @@ +// +build windows + +package reexec + +import ( + "os/exec" +) + +func Command(args ...string) *exec.Cmd { + return &exec.Cmd{ + Path: Self(), + Args: args, + } +}