use libnetwork/slirp4netns from c/common

Most of the code moved there so if from there and remove it here.

Some extra changes are required here. This is a bit of a mess. The pipe
handling makes this a bit more difficult.

[NO NEW TESTS NEEDED] This is just a rework, existing tests must pass.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2023-06-20 15:58:01 +02:00
parent 180cf0cf17
commit 614c962c23
21 changed files with 853 additions and 881 deletions

View File

@ -153,7 +153,7 @@ func (c *Container) waitForExitFileAndSync() error {
chWait := make(chan error)
defer close(chWait)
_, err = WaitForFile(exitFile, chWait, time.Second*5)
_, err = cutil.WaitForFile(exitFile, chWait, time.Second*5)
if err != nil {
// Exit file did not appear
// Reset our state