From 5523e7d99dbabb8230a3318c90beb73ceca61400 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 27 Jun 2017 09:45:43 +0200 Subject: [PATCH] utils: remove unused Prctl wrapper Remove the Prctl wrapper function which has been unused since commit d2f6a4c0e2ee. If a prctl wrapper would be needed in the future, golang.org/x/sys provides unix.Prctl which could be used instead. Signed-off-by: Tobias Klauser --- utils/utils.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/utils/utils.go b/utils/utils.go index 613020ed..dec3a1fe 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -6,7 +6,6 @@ import ( "io" "os/exec" "strings" - "syscall" systemdDbus "github.com/coreos/go-systemd/dbus" "github.com/godbus/dbus" @@ -44,15 +43,6 @@ func ExecCmdWithStdStreams(stdin io.Reader, stdout, stderr io.Writer, name strin return nil } -// Prctl is a way to make the prctl linux syscall -func Prctl(option int, arg2, arg3, arg4, arg5 uintptr) (err error) { - _, _, e1 := syscall.Syscall6(syscall.SYS_PRCTL, uintptr(option), arg2, arg3, arg4, arg5, 0) - if e1 != 0 { - err = e1 - } - return -} - // StatusToExitCode converts wait status code to an exit code func StatusToExitCode(status int) int { return ((status) & 0xff00) >> 8