spiegel_podman/pkg/api
Matthew Heon 07f2df472c Ensure shutdown handler access is syncronized
There was a potential race where two handlers could be added at
the same time. Go Maps are not thread-safe, so that could do
unpleasant things. Add a mutex to keep things safe.

Also, swap the order or Register and Start for the handlers in
Libpod runtime created. As written, there was a small gap between
Start and Register where SIGTERM/SIGINT would be completely
ignored, instead of stopping Podman. Swapping the two closes this
gap.

Signed-off-by: Matthew Heon <mheon@redhat.com>
2021-01-29 15:24:24 -05:00
..
handlers Set log driver for compatability containers 2021-01-21 10:22:36 -06:00
server Ensure shutdown handler access is syncronized 2021-01-29 15:24:24 -05:00
types podman rmi: refactor logic 2020-04-21 08:12:25 +02:00
Makefile Rewire ListContainers for APIv2 libpod 2020-02-11 08:14:28 -06:00
tags.yaml [CI:DOCS] fix swagger api docs 2020-08-23 15:10:22 +02:00