summaryrefslogtreecommitdiff
path: root/libpod/lock/shm
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-11-13 18:01:52 +0100
committerGitHub <noreply@github.com>2019-11-13 18:01:52 +0100
commit15220af08ce2346686e54851a6d498ec573e950c (patch)
tree95507d870e38e835c4398630a96dda6d1d342a3b /libpod/lock/shm
parent7a693a1946d201825bcd0933f565f07047312c70 (diff)
parent8d928d525ffa8147d34d0f148e0aec6189461318 (diff)
downloadpodman-15220af08ce2346686e54851a6d498ec573e950c.tar.gz
podman-15220af08ce2346686e54851a6d498ec573e950c.tar.bz2
podman-15220af08ce2346686e54851a6d498ec573e950c.zip
Merge pull request #4497 from onlyjob/master
codespell: spelling corrections
Diffstat (limited to 'libpod/lock/shm')
-rw-r--r--libpod/lock/shm/shm_lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/lock/shm/shm_lock.c b/libpod/lock/shm/shm_lock.c
index fbb3f57cc..95052c40f 100644
--- a/libpod/lock/shm/shm_lock.c
+++ b/libpod/lock/shm/shm_lock.c
@@ -145,7 +145,7 @@ shm_struct_t *setup_lock_shm(char *path, uint32_t num_locks, int *error_code) {
// Set mutexes to robust - if a process dies while holding a mutex, we'll get
// a special error code on the next attempt to lock it.
- // This should prevent panicing processes from leaving the state unusable.
+ // This should prevent panicking processes from leaving the state unusable.
ret_code = pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);
if (ret_code != 0) {
*error_code = -1 * ret_code;
@@ -298,7 +298,7 @@ int32_t close_lock_shm(shm_struct_t *shm) {
// Allocate the first available semaphore
// Returns a positive integer guaranteed to be less than UINT32_MAX on success,
// or negative errno values on failure
-// On sucess, the returned integer is the number of the semaphore allocated
+// On success, the returned integer is the number of the semaphore allocated
int64_t allocate_semaphore(shm_struct_t *shm) {
int ret_code, i;
bitmap_t test_map;