mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-13 07:04:58 +00:00
Merge pull request #1459 from mxpv/pid
agent: Agent invokes OCI hooks with wrong PID
This commit is contained in:
commit
2f591f5642
@ -834,8 +834,6 @@ impl BaseContainer for LinuxContainer {
|
|||||||
}
|
}
|
||||||
let linux = spec.linux.as_ref().unwrap();
|
let linux = spec.linux.as_ref().unwrap();
|
||||||
|
|
||||||
let st = self.oci_state()?;
|
|
||||||
|
|
||||||
let (pfd_log, cfd_log) = unistd::pipe().context("failed to create pipe")?;
|
let (pfd_log, cfd_log) = unistd::pipe().context("failed to create pipe")?;
|
||||||
|
|
||||||
let _ = fcntl::fcntl(pfd_log, FcntlArg::F_SETFD(FdFlag::FD_CLOEXEC))
|
let _ = fcntl::fcntl(pfd_log, FcntlArg::F_SETFD(FdFlag::FD_CLOEXEC))
|
||||||
@ -938,6 +936,8 @@ impl BaseContainer for LinuxContainer {
|
|||||||
|
|
||||||
info!(logger, "child pid: {}", p.pid);
|
info!(logger, "child pid: {}", p.pid);
|
||||||
|
|
||||||
|
let st = self.oci_state()?;
|
||||||
|
|
||||||
join_namespaces(
|
join_namespaces(
|
||||||
&logger,
|
&logger,
|
||||||
&spec,
|
&spec,
|
||||||
|
Loading…
Reference in New Issue
Block a user