mirror of
https://github.com/containers/podman.git
synced 2025-09-27 16:54:42 +08:00

On FreeBSD, the path argument to shm_open is not a filesystem path and we must use shm_unlink to remove it. This changes the Linux build to also use shm_unlink which avoids assuming that shared memory segments live in /dev/shm. Signed-off-by: Doug Rabson <dfr@rabson.org>