]> git.mikk.net Git - smtpsink/commitdiff
bonehead error pthread_foo return 0 on *success* not error.
authorchris mikkelson <chris@mikk.net>
Wed, 25 Mar 2009 03:29:07 +0000 (22:29 -0500)
committerchris mikkelson <chris@mikk.net>
Wed, 25 Mar 2009 03:29:07 +0000 (22:29 -0500)
conn_queue.c

index fc5e5f23522e4968bf33aba71376e6554c3e82ad..c2cbec616cd1780eb3caaffb3788f04ac6b37f25 100644 (file)
@@ -45,7 +45,7 @@ tpool_priv_init(void)
        struct tpool_qstate *tp;
        tp = (struct tpool_qstate *)malloc(sizeof(struct tpool_qstate));
        if (!tp) return 0;
-       if (!pthread_cond_init(&tp->cond, 0)) {
+       if (pthread_cond_init(&tp->cond, 0)) {
                free(tp);
                return 0;
        }