summaryrefslogtreecommitdiffhomepage
path: root/pkg/shim/proc
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-07-13 18:40:16 +0000
committergVisor bot <gvisor-bot@google.com>2021-07-13 18:40:16 +0000
commita59f2ea88b9cb4be998fc282fc4c233f2f9f593d (patch)
tree375242d6aca02f9d9545557317c41d10a638f994 /pkg/shim/proc
parent3a6883a773ea8547f0aca5e20d36c096f2ac067a (diff)
parentc16e69a9d5ec3422b648a6d32842442925285a29 (diff)
Merge release-20210705.0-19-gc16e69a9d (automated)
Diffstat (limited to 'pkg/shim/proc')
-rw-r--r--pkg/shim/proc/exec.go3
-rw-r--r--pkg/shim/proc/exec_state.go8
2 files changed, 3 insertions, 8 deletions
diff --git a/pkg/shim/proc/exec.go b/pkg/shim/proc/exec.go
index e0f2ae6fa..da2e21598 100644
--- a/pkg/shim/proc/exec.go
+++ b/pkg/shim/proc/exec.go
@@ -113,7 +113,7 @@ func (e *execProcess) Delete(ctx context.Context) error {
return e.execState.Delete(ctx)
}
-func (e *execProcess) delete() error {
+func (e *execProcess) delete() {
e.wg.Wait()
if e.io != nil {
for _, c := range e.closers {
@@ -121,7 +121,6 @@ func (e *execProcess) delete() error {
}
e.io.Close()
}
- return nil
}
func (e *execProcess) Resize(ws console.WinSize) error {
diff --git a/pkg/shim/proc/exec_state.go b/pkg/shim/proc/exec_state.go
index 8d8ecf541..03ecb401a 100644
--- a/pkg/shim/proc/exec_state.go
+++ b/pkg/shim/proc/exec_state.go
@@ -64,9 +64,7 @@ func (s *execCreatedState) Start(ctx context.Context) error {
}
func (s *execCreatedState) Delete(context.Context) error {
- if err := s.p.delete(); err != nil {
- return err
- }
+ s.p.delete()
s.transition(deleted)
return nil
}
@@ -144,9 +142,7 @@ func (s *execStoppedState) Start(context.Context) error {
}
func (s *execStoppedState) Delete(context.Context) error {
- if err := s.p.delete(); err != nil {
- return err
- }
+ s.p.delete()
s.transition(deleted)
return nil
}