Skip to content

Commit e8e1ff4

Browse files
committed
[project] change syscall to /x/sys/unix|windows
Changes most references of syscall to golang.org/x/sys/ Ones aren't changes include, Errno, Signal and SysProcAttr as they haven't been implemented in /x/sys/. Signed-off-by: Christopher Jones <[email protected]> [s390x] switch utsname from unsigned to signed per golang/sys@33267e0 char in s390x in the /x/sys/unix package is now signed, so change the buildtags Signed-off-by: Christopher Jones <[email protected]>
1 parent 3e89381 commit e8e1ff4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

reexec/command_linux.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ package reexec
55
import (
66
"os/exec"
77
"syscall"
8+
9+
"golang.org/x/sys/unix"
810
)
911

1012
// Self returns the path to the current process's binary.
@@ -22,7 +24,7 @@ func Command(args ...string) *exec.Cmd {
2224
Path: Self(),
2325
Args: args,
2426
SysProcAttr: &syscall.SysProcAttr{
25-
Pdeathsig: syscall.SIGTERM,
27+
Pdeathsig: unix.SIGTERM,
2628
},
2729
}
2830
}

0 commit comments

Comments
 (0)