diff options
author | Dean Deng <deandeng@google.com> | 2021-04-19 16:43:20 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-04-19 16:48:27 -0700 |
commit | 20b1c3c632277bd64eac4d0442bda9695f184fc9 (patch) | |
tree | b2627fb84af14531bffed6dec381e4cd76867533 /runsc/cli/BUILD | |
parent | 7bfc76d946b6c3f02fc32831ddc282ac2816d5ed (diff) |
Move runsc reference leak checking to better locations.
In the previous spot, there was a roughly 50% chance that leak checking would
actually run. Move it to the waitContainer() call on the root container, where
it is guaranteed to run before the sandbox process is terminated. Add it to
runsc/cli/main.go as well for good measure, in case the sandbox exit path does
not involve waitContainer().
PiperOrigin-RevId: 369329796
Diffstat (limited to 'runsc/cli/BUILD')
-rw-r--r-- | runsc/cli/BUILD | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runsc/cli/BUILD b/runsc/cli/BUILD index 705738aef..360e3cea6 100644 --- a/runsc/cli/BUILD +++ b/runsc/cli/BUILD @@ -13,6 +13,7 @@ go_library( "//pkg/coverage", "//pkg/log", "//pkg/refs", + "//pkg/refsvfs2", "//pkg/sentry/platform", "//runsc/cmd", "//runsc/config", |