diff options
author | Lantao Liu <lantaol@google.com> | 2018-09-20 16:58:36 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-09-20 16:59:42 -0700 |
commit | 8a938a3f9df631667c5f9e5d4a2185207e492a0d (patch) | |
tree | 101c63596570ec0c95ffdd0de1ccbb09cf6d67fb /runsc/boot | |
parent | cbaec4d61454f7426d14b44bf25c67282251453c (diff) |
runsc: allow `runsc wait` on a container for multiple times.
PiperOrigin-RevId: 213908919
Change-Id: I74eff99a5360bb03511b946f4cb5658bb5fc40c7
Diffstat (limited to 'runsc/boot')
-rw-r--r-- | runsc/boot/loader.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/runsc/boot/loader.go b/runsc/boot/loader.go index e47eced18..5867eec96 100644 --- a/runsc/boot/loader.go +++ b/runsc/boot/loader.go @@ -573,15 +573,8 @@ func (l *Loader) waitContainer(cid string, waitStatus *uint32) error { // If the thread either has already exited or exits during waiting, // consider the container exited. - // TODO: Multiple calls to waitContainer() should return - // the same exit status. ws := l.wait(tg) *waitStatus = ws - - l.mu.Lock() - defer l.mu.Unlock() - delete(l.containerRootTGs, cid) - return nil } |