summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpod/networking_linux.go4
-rw-r--r--test/system/450-interactive.bats12
2 files changed, 11 insertions, 5 deletions
diff --git a/libpod/networking_linux.go b/libpod/networking_linux.go
index 9145569fb..1b775a4f3 100644
--- a/libpod/networking_linux.go
+++ b/libpod/networking_linux.go
@@ -908,6 +908,10 @@ func (c *Container) getContainerNetworkInfo() (*define.InspectNetworkSettings, e
if err != nil {
return nil, err
}
+ // see https://github.com/containers/podman/issues/10090
+ // the container has to be locked for syncContainer()
+ netNsCtr.lock.Lock()
+ defer netNsCtr.lock.Unlock()
// Have to sync to ensure that state is populated
if err := netNsCtr.syncContainer(); err != nil {
return nil, err
diff --git a/test/system/450-interactive.bats b/test/system/450-interactive.bats
index 53925b3c8..47bdff9ab 100644
--- a/test/system/450-interactive.bats
+++ b/test/system/450-interactive.bats
@@ -61,12 +61,14 @@ function teardown() {
run_podman rm -f mystty
- # check that the same works for podman exec
- run_podman run -d --name mystty $IMAGE top
- run_podman exec -it mystty stty size <$PODMAN_TEST_PTY
- is "$output" "$rows $cols" "stty under podman exec reads the correct dimensions"
+ # FIXME: the checks below are flaking a lot (see #10710).
- run_podman rm -f mystty
+ # check that the same works for podman exec
+# run_podman run -d --name mystty $IMAGE top
+# run_podman exec -it mystty stty size <$PODMAN_TEST_PTY
+# is "$output" "$rows $cols" "stty under podman exec reads the correct dimensions"
+#
+# run_podman rm -f mystty
}