mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-19 05:24:40 +01:00
Current working directory is a process level resource. We cannot call chdir in parallel from multiple threads, which would cause cwd confusion and result in UT failures. The agent code itself is correct that chdir is only called from spawned child init process. Well, there is one exception that it is also called in do_create_container() but it is safe to assume that containers are never created in parallel (at least for now). Fixes: #782 Signed-off-by: Peng Tao <bergwolf@hyper.sh>