mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 20:54:26 +00:00
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 <bin@hyper.sh>
This commit is contained in:
parent
1dd77e204f
commit
c388ec5bef
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user