diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-08-03 18:18:05 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-08-03 18:29:20 +0200 |
| commit | 649477b6a5ae651dbf3c731911b81edd8c9d5fb2 (patch) | |
| tree | dd4bd0eec2bcfba3afe2df19b27f11c1cd219701 /pkg/osutil | |
| parent | 6bfd4f09db1079ee95e0ee10f770e34499e9eeee (diff) | |
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.
Diffstat (limited to 'pkg/osutil')
| -rw-r--r-- | pkg/osutil/osutil_fuchsia.go | 4 | ||||
| -rw-r--r-- | pkg/osutil/osutil_unix.go | 11 | ||||
| -rw-r--r-- | pkg/osutil/osutil_windows.go | 4 |
3 files changed, 0 insertions, 19 deletions
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 } |
