moby/daemon/graphdriver/vfs
Cory Snider f77a3274b4
[chore] clean up reexec.Init() calls
Now that most uses of reexec have been replaced with non-reexec
solutions, most of the reexec.Init() calls peppered throughout the test
suites are unnecessary. Furthermore, most of the reexec.Init() calls in
test code neglects to check the return value to determine whether to
exit, which would result in the reexec'ed subprocesses proceeding to run
the tests, which would reexec another subprocess which would proceed to
run the tests, recursively. (That would explain why every reexec
callback used to unconditionally call os.Exit() instead of returning...)

Remove unneeded reexec.Init() calls from test and example code which no
longer needs it, and fix the reexec.Init() calls which are not inert to
exit after a reexec callback is invoked.

Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit 4e0319c878)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-05-11 16:31:41 +02:00
..
copy_linux.go Add canonical import comment 2018-02-05 16:51:57 -05:00
copy_unsupported.go Finish refactor of UID/GID usage to a new struct 2022-03-14 16:28:57 -04:00
driver.go pkg/containerfs: drop ContainerFS type alias 2022-09-23 16:56:53 -04:00
quota_linux.go golangci-lint: update to v1.49.0 2022-09-23 23:31:27 +02:00
quota_unsupported.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
vfs_test.go [chore] clean up reexec.Init() calls 2023-05-11 16:31:41 +02:00