From c388ec5bef43035e56ea0998aaf05f6b1e038277 Mon Sep 17 00:00:00 2001 From: bin liu Date: Wed, 18 Nov 2020 17:18:59 +0800 Subject: [PATCH] runtime: don't wait the second shim process in shim start In first shim v2 startup(with `start` command-line option), it will start the second shim v2 process running as ttrpc server, there is no needs to wait the second process, because the current shim v2 process will exit immediately. Fixes: #1127 Signed-off-by: bin liu --- src/runtime/containerd-shim-v2/service.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/runtime/containerd-shim-v2/service.go b/src/runtime/containerd-shim-v2/service.go index 795f27e4b5..62c441df50 100644 --- a/src/runtime/containerd-shim-v2/service.go +++ b/src/runtime/containerd-shim-v2/service.go @@ -215,8 +215,6 @@ func (s *service) StartShim(ctx context.Context, id, containerdBinary, container } }() - // make sure to wait after start - go cmd.Wait() if err = cdshim.WritePidFile("shim.pid", cmd.Process.Pid); err != nil { return "", err }