From 57135f38e2bc6e743cf7849313a003aba2bcb0ae Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 28 May 2013 15:23:05 +0100 Subject: [PATCH] Fix arguments order in system call. --- src/mem_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem_pool.c b/src/mem_pool.c index 5ab582352..553b48fe1 100644 --- a/src/mem_pool.c +++ b/src/mem_pool.c @@ -452,7 +452,7 @@ __mutex_spin (memory_pool_mutex_t * mutex) g_atomic_int_set (&mutex->spin, MUTEX_SPIN_COUNT); return 0; } - else if (kill (0, mutex->owner) == -1) { + else if (kill (mutex->owner, 0) == -1) { /* Owner process was not found, so release lock */ g_atomic_int_set (&mutex->spin, MUTEX_SPIN_COUNT); return 0; -- 2.39.5