moby/testutil/daemon
Paweł Gronowski c6bf3071fe
StartWithLogFile: Fix d.cmd race
Use `exec.Command` created by this function instead of obtaining it from
daemon struct. This prevents a race condition where `daemon.Kill` is
called before the goroutine has the chance to call `cmd.Wait`.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit 88992de283)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2023-03-22 15:36:44 +01:00
..
config.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
container.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
daemon.go StartWithLogFile: Fix d.cmd race 2023-03-22 15:36:44 +01:00
daemon_freebsd.go Port testutil/daemon to FreeBSD 2021-10-16 09:51:55 +03:00
daemon_linux.go Port testutil/daemon to FreeBSD 2021-10-16 09:51:55 +03:00
daemon_unix.go Port testutil/daemon to FreeBSD 2021-10-16 09:51:55 +03:00
daemon_windows.go Do not call mount.RecursiveUnmount() on Windows 2020-10-29 23:00:16 +01:00
doc.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00
node.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
ops.go daemon: support other containerd runtimes (MVP) 2022-07-29 20:36:50 +02:00
plugin.go testutil: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
secret.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
service.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
swarm.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00