diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-08-06 10:57:43 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-01-04 09:45:59 -0500 |
commit | b489feff717a9976ee177acd4b239acf2dc9c326 (patch) | |
tree | 8fa3c08a66aeb88a6dc83e578c44a85d81937568 /cmd/podman | |
parent | 27cebb780be4142afe6356cbbc57775a33e8e55e (diff) | |
download | podman-b489feff717a9976ee177acd4b239acf2dc9c326.tar.gz podman-b489feff717a9976ee177acd4b239acf2dc9c326.tar.bz2 podman-b489feff717a9976ee177acd4b239acf2dc9c326.zip |
Add mutex invariant to SHM semaphores.
Check value of semaphores when incrementing to ensure we never go
beyond 1, preserving mutex invariants.
Also, add cleanup code to the lock tests, ensuring that we never
leave the locks in a bad state after a test. We aren't destroying
and recreating the SHM every time, so we have to be careful not
to leak state between test runs.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'cmd/podman')
0 files changed, 0 insertions, 0 deletions