moby/libnetwork/drivers
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
..
bridge [chore] clean up reexec.Init() calls 2023-05-11 16:31:41 +02:00
host libnet: convert to new-style driver registration 2023-01-27 11:47:42 -05:00
ipvlan libnet/d/ipvlan: gracefully migrate from older dbs 2023-02-06 12:08:28 -05:00
macvlan libnet: convert to new-style driver registration 2023-01-27 11:47:42 -05:00
null libnet: convert to new-style driver registration 2023-01-27 11:47:42 -05:00
overlay libnetwork: overlayutils: remove redundant init() 2023-04-28 20:18:29 +02:00
remote libnet: convert to new-style driver registration 2023-01-27 11:47:42 -05:00
windows libnetwork: remove unused props from windows overlay driver 2023-04-06 19:33:04 +02:00