diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-02-16 12:55:42 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-02-16 12:55:42 +0000 |
commit | 719e4fc320e1978bc9ea6ee8be9f8249dcb54dab (patch) | |
tree | 4c736a4619c9f2ad373bb05e3711520e88b9f8cf /thrpool.c | |
parent | 13cbdcea65248271668562064aafdcc9634ef9ce (diff) | |
download | cmogstored-719e4fc320e1978bc9ea6ee8be9f8249dcb54dab.tar.gz |
Older glibc will return ENOMEM on mprotect() failures. This bug was only fixed in 2011, so the long-term distros and old installations may not have the necessary backports. ref: http://www.sourceware.org/bugzilla/show_bug.cgi?id=386
Diffstat (limited to 'thrpool.c')
-rw-r--r-- | thrpool.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |