vendor: update docker/docker/pkg/reexec so that it compiles on OpenBSD (#17084)

This commit is contained in:
Fabian Raetz
2018-07-02 13:25:02 +02:00
committed by Péter Szilágyi
parent 8974e2e5e0
commit 223d943481
6 changed files with 18 additions and 16 deletions

View File

@ -1,10 +1,10 @@
// +build linux
package reexec
package reexec // import "github.com/docker/docker/pkg/reexec"
import (
"os/exec"
"syscall"
"golang.org/x/sys/unix"
)
// Self returns the path to the current process's binary.
@ -22,7 +22,7 @@ func Command(args ...string) *exec.Cmd {
Path: Self(),
Args: args,
SysProcAttr: &syscall.SysProcAttr{
Pdeathsig: syscall.SIGTERM,
Pdeathsig: unix.SIGTERM,
},
}
}

View File

@ -1,6 +1,6 @@
// +build freebsd solaris darwin
// +build freebsd darwin
package reexec
package reexec // import "github.com/docker/docker/pkg/reexec"
import (
"os/exec"

View File

@ -1,12 +1,16 @@
// +build !linux,!windows,!freebsd,!solaris,!darwin
// +build !linux,!windows,!freebsd,!darwin
package reexec
package reexec // import "github.com/docker/docker/pkg/reexec"
import (
"os/exec"
)
// Command is unsupported on operating systems apart from Linux, Windows, Solaris and Darwin.
func Self() string {
return ""
}
// Command is unsupported on operating systems apart from Linux, Windows, and Darwin.
func Command(args ...string) *exec.Cmd {
return nil
}

View File

@ -1,6 +1,4 @@
// +build windows
package reexec
package reexec // import "github.com/docker/docker/pkg/reexec"
import (
"os/exec"

View File

@ -1,4 +1,4 @@
package reexec
package reexec // import "github.com/docker/docker/pkg/reexec"
import (
"fmt"