From b034458960690776ef87dcc7f2e159d5bad0567a Mon Sep 17 00:00:00 2001 From: bin Date: Tue, 9 Mar 2021 17:41:44 +0800 Subject: [PATCH] runtime: return hypervisor Pid in TaskExit event Other RPC calls return Pid of hypervisor, the TaskExit should return the same Pid. Fixes: #1497 Signed-off-by: bin --- src/runtime/containerd-shim-v2/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/containerd-shim-v2/utils.go b/src/runtime/containerd-shim-v2/utils.go index 05e883c5d45c..d3001fda7180 100644 --- a/src/runtime/containerd-shim-v2/utils.go +++ b/src/runtime/containerd-shim-v2/utils.go @@ -24,7 +24,7 @@ import ( func cReap(s *service, status int, id, execid string, exitat time.Time) { s.ec <- exit{ timestamp: exitat, - pid: s.pid, + pid: s.hpid, status: status, id: id, execid: execid,