about summary refs log tree commit homepage
path: root/thrpool.c
diff options
context:
space:
mode:
Diffstat (limited to 'thrpool.c')
-rw-r--r--thrpool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thrpool.c b/thrpool.c
index 718c568..8030e19 100644
--- a/thrpool.c
+++ b/thrpool.c
@@ -96,7 +96,7 @@ static void thrpool_set_size(struct mog_thrpool *tp, size_t size)
                 if (rc == 0) {
                         tp->n_threads++;
                         nr_eagain = 0;
-                } else if (rc == EAGAIN) {
+                } else if (mog_pthread_create_retry(rc)) {
                         if (!thr_create_fail_retry(tp, size, &nr_eagain, rc))
                                 goto out;
                 } else {