]> source.dussan.org Git - rspamd.git/commitdiff
Fix arguments order in system call.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 28 May 2013 14:23:05 +0000 (15:23 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 28 May 2013 14:23:05 +0000 (15:23 +0100)
src/mem_pool.c

index 5ab582352da50d9f2381744c3a24e04838c14468..553b48fe10deb04f6c5ab82d5f695598db20abbe 100644 (file)
@@ -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;