mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 23:38:31 +00:00
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 <bin@hyper.sh> (backport https://github.com/kata-containers/kata-containers/pull/1498) Signed-off-by: Francesco Giudici <fgiudici@redhat.com> [ fix missing GetHypervisorPid method in MockSandbox ] Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
2dd859bfce
commit
d87076eea5
@ -24,7 +24,7 @@ import (
|
|||||||
func cReap(s *service, status int, id, execid string, exitat time.Time) {
|
func cReap(s *service, status int, id, execid string, exitat time.Time) {
|
||||||
s.ec <- exit{
|
s.ec <- exit{
|
||||||
timestamp: exitat,
|
timestamp: exitat,
|
||||||
pid: s.pid,
|
pid: s.hpid,
|
||||||
status: status,
|
status: status,
|
||||||
id: id,
|
id: id,
|
||||||
execid: execid,
|
execid: execid,
|
||||||
|
@ -254,3 +254,7 @@ func (s *Sandbox) GetAgentURL() (string, error) {
|
|||||||
}
|
}
|
||||||
return "", nil
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *Sandbox) GetHypervisorPid() (int, error) {
|
||||||
|
return 0, nil
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user