From 649477b6a5ae651dbf3c731911b81edd8c9d5fb2 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 3 Aug 2018 18:18:05 +0200 Subject: pkg/ipc: remove abort signal and buffer size They were needed for intermediate gvisor support. Now that we have end-to-end support for gvisor, they are not needed anymore. Remove. --- pkg/osutil/osutil_fuchsia.go | 4 ---- pkg/osutil/osutil_unix.go | 11 ----------- pkg/osutil/osutil_windows.go | 4 ---- 3 files changed, 19 deletions(-) (limited to 'pkg/osutil') diff --git a/pkg/osutil/osutil_fuchsia.go b/pkg/osutil/osutil_fuchsia.go index e1cbe6046..c9fe585e9 100644 --- a/pkg/osutil/osutil_fuchsia.go +++ b/pkg/osutil/osutil_fuchsia.go @@ -30,10 +30,6 @@ func ProcessExitStatus(ps *os.ProcessState) int { return 0 } -func ProcessSignal(p *os.Process, sig int) bool { - return false -} - func prolongPipe(r, w *os.File) { } diff --git a/pkg/osutil/osutil_unix.go b/pkg/osutil/osutil_unix.go index 92c85d4c6..ad6886bc0 100644 --- a/pkg/osutil/osutil_unix.go +++ b/pkg/osutil/osutil_unix.go @@ -144,14 +144,3 @@ func CloseMemMappedFile(f *os.File, mem []byte) error { func ProcessExitStatus(ps *os.ProcessState) int { return ps.Sys().(syscall.WaitStatus).ExitStatus() } - -// ProcessSignal sends signal sig to the process, returns true if the process was killed. -// Again, this is here only because of fuchsia. -func ProcessSignal(p *os.Process, sig int) bool { - SIGKILL := int(syscall.SIGKILL) - if sig <= 0 || sig >= 32 { - sig = SIGKILL - } - p.Signal(syscall.Signal(sig)) - return sig == SIGKILL -} diff --git a/pkg/osutil/osutil_windows.go b/pkg/osutil/osutil_windows.go index 2d8569921..4c9918a3c 100644 --- a/pkg/osutil/osutil_windows.go +++ b/pkg/osutil/osutil_windows.go @@ -33,10 +33,6 @@ func ProcessExitStatus(ps *os.ProcessState) int { return ps.Sys().(syscall.WaitStatus).ExitStatus() } -func ProcessSignal(p *os.Process, sig int) bool { - return false -} - func Sandbox(cmd *exec.Cmd, user, net bool) error { return nil } -- cgit mrf-deployment