summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/platform/ptrace
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2018-05-11 12:23:25 -0700
committerShentubot <shentubot@google.com>2018-05-11 12:24:15 -0700
commit8deabbaae1fc45b042d551891080deef866dc0f8 (patch)
tree23aff1527fcb4f352a639159b693264d1ddd0c4b /pkg/sentry/platform/ptrace
parent12c161f27865d0e389cd593c669bd740d7f24692 (diff)
Remove error return from AddressSpace.Release()
PiperOrigin-RevId: 196291289 Change-Id: Ie3487be029850b0b410b82416750853a6c4a2b00
Diffstat (limited to 'pkg/sentry/platform/ptrace')
-rw-r--r--pkg/sentry/platform/ptrace/subprocess.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/sentry/platform/ptrace/subprocess.go b/pkg/sentry/platform/ptrace/subprocess.go
index 0d6a38f15..035ebc332 100644
--- a/pkg/sentry/platform/ptrace/subprocess.go
+++ b/pkg/sentry/platform/ptrace/subprocess.go
@@ -242,14 +242,13 @@ func (s *subprocess) unmap() {
// Therefore we simply unmap everything in the subprocess and return it to the
// globalPool. This has the added benefit of reducing creation time for new
// subprocesses.
-func (s *subprocess) Release() error {
+func (s *subprocess) Release() {
go func() { // S/R-SAFE: Platform.
s.unmap()
globalPool.mu.Lock()
globalPool.available = append(globalPool.available, s)
globalPool.mu.Unlock()
}()
- return nil
}
// newThread creates a new traced thread.