Files
moby/daemon
Sebastiaan van Stijn 0e0ca09ddc daemon: containerStop: fix ordering of "stop" and "die" events
Commit 8e6cd44ce4 added synchronisation to
wait for the container's status to be updated in memory. However, since
952902efbc, a defer was used to produce
the container's "stop" event.

As a result of the sychronisation that was added, the "die" event would
now be produced before the "stop" event.

This patch moves the locking inside the defer to restore the previous
behavior.

Unfortunately the order of events is still not guaranteed, because events
are emited from multiple goroutines that don't have synchronisation between
them; this is something to look at for follow ups. This patch keeps the status
quo and should preserve the old behavior, which was "more" correct in most
cases.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 062082ec9b)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-06-20 13:29:19 +02:00
..
2025-06-13 08:26:56 +00:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-06-07 09:57:59 +02:00
2025-05-30 15:59:13 +02:00
2025-06-07 09:57:59 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-06-13 08:26:56 +00:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2024-11-28 10:03:46 +01:00
2025-06-13 08:26:56 +00:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-01 14:16:44 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-06-07 09:57:59 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-06-07 09:57:59 +02:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00