aboutsummaryrefslogtreecommitdiffstats
path: root/src/mem_pool.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-05-28 15:23:05 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-05-28 15:23:05 +0100
commit57135f38e2bc6e743cf7849313a003aba2bcb0ae (patch)
tree748cf1173bdda9a9c3d6f1b76d0267715edfd331 /src/mem_pool.c
parentabf0dacb0b9c644383526ea88321e3861848a72f (diff)
downloadrspamd-57135f38e2bc6e743cf7849313a003aba2bcb0ae.tar.gz
rspamd-57135f38e2bc6e743cf7849313a003aba2bcb0ae.zip
Fix arguments order in system call.
Diffstat (limited to 'src/mem_pool.c')
-rw-r--r--src/mem_pool.c2
1 files changed, 1 insertions, 1 deletions
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;