containerd/linux
Ian Campbell d63d2ecf6c Simplify mount cleanup on failure by using defer
This avoids someone adding a new error path and forgetting to call the cleanup
function.

We prefer to use an explicit flag to gate the clean rather than relying on `err
!= nil` so we don't have to rely on people never accidentally shadowing the
`err` as seen by the closure.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-07-20 10:50:08 +01:00
..
runcopts Remove protos from Go client API 2017-07-12 14:32:37 -07:00
shim Simplify mount cleanup on failure by using defer 2017-07-20 10:50:08 +01:00
bundle.go Start of day configuration of shim debug setting 2017-07-12 17:48:27 +01:00
process.go linux, linux/shim: remove error definitions 2017-07-18 15:56:49 -07:00
runtime.go linux, linux/shim: remove error definitions 2017-07-18 15:56:49 -07:00
task.go linux, linux/shim: remove error definitions 2017-07-18 15:56:49 -07:00