diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-01-06 23:16:55 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-06 23:16:55 -0800 |
commit | 1e4db4b0b8504e93e826d02b6c03cf78f41dcf7a (patch) | |
tree | 6efd8b7d8baf3344412b9d23b875cca1dbddccf4 /libpod/lock/shm/shm_lock.go | |
parent | b83b07cb4748f983c21b08b2ba015561cf664989 (diff) | |
parent | a76256834a0a409dfb53943e04fd2458c7782361 (diff) | |
download | podman-1e4db4b0b8504e93e826d02b6c03cf78f41dcf7a.tar.gz podman-1e4db4b0b8504e93e826d02b6c03cf78f41dcf7a.tar.bz2 podman-1e4db4b0b8504e93e826d02b6c03cf78f41dcf7a.zip |
Merge pull request #2089 from rhatdan/locks
Rootless with shmlocks was not working.
Diffstat (limited to 'libpod/lock/shm/shm_lock.go')
-rw-r--r-- | libpod/lock/shm/shm_lock.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/lock/shm/shm_lock.go b/libpod/lock/shm/shm_lock.go index 3372a8c71..be5e5148f 100644 --- a/libpod/lock/shm/shm_lock.go +++ b/libpod/lock/shm/shm_lock.go @@ -48,7 +48,7 @@ func CreateSHMLock(path string, numLocks uint32) (*SHMLocks, error) { lockStruct := C.setup_lock_shm(cPath, C.uint32_t(numLocks), &errCode) if lockStruct == nil { // We got a null pointer, so something errored - return nil, syscall.Errno(-1 * errCode) + return nil, errors.Wrapf(syscall.Errno(-1*errCode), "failed to create %d locks in %s", numLocks, path) } locks.lockStruct = lockStruct @@ -77,7 +77,7 @@ func OpenSHMLock(path string, numLocks uint32) (*SHMLocks, error) { lockStruct := C.open_lock_shm(cPath, C.uint32_t(numLocks), &errCode) if lockStruct == nil { // We got a null pointer, so something errored - return nil, syscall.Errno(-1 * errCode) + return nil, errors.Wrapf(syscall.Errno(-1*errCode), "failed to open %d locks in %s", numLocks, path) } locks.lockStruct = lockStruct |