containerd/runtime/v2/runc
Erik Sipsma fbd46d7094
runtime v2: Close platform in runc shim's Shutdown method.
Previously, the platform was closed as part of the Delete method when the
process was an init for a task and there were no more tasks after its deletion.
This can create problems if another task is created within the shim right after
the delete runs, which results in the platform being closed but the shim
continuing to run.

This change moves closing the platform to the Shutdown method after the shim's
context is canceled, which ensures the platform is only closed once the shim
is sure its done servicing containers.

Signed-off-by: Erik Sipsma <sipsma@amazon.com>
2019-12-19 09:47:40 -05:00
..
options Regenerate protobufs 2019-04-03 23:41:15 +02:00
v1 support cgroup2 2019-12-12 02:56:51 +09:00
v2 runtime v2: Close platform in runc shim's Shutdown method. 2019-12-19 09:47:40 -05:00
container.go support cgroup2 2019-12-12 02:56:51 +09:00
platform.go Handle large output in v2 shim with TTY 2019-10-11 15:42:05 -04:00
util.go Move runc shim code into common package 2019-02-21 10:47:41 -05:00