Mac OS page clearing implementation update. (#225)

diff --git a/rpmalloc/rpmalloc.c b/rpmalloc/rpmalloc.c
index 8be3c80..e39a5cb 100644
--- a/rpmalloc/rpmalloc.c
+++ b/rpmalloc/rpmalloc.c
@@ -907,7 +907,9 @@
 		}
 	} else {
 #if defined(MADV_FREE_REUSABLE)
-		if (madvise(address, size, MADV_FREE_REUSABLE))
+		int ret;
+		while ((ret = madvise(address, size, MADV_FREE_REUSABLE)) == -1 && errno == EAGAIN);
+		if (ret == -1 && errno != 0)
 #elif defined(MADV_FREE)
 		if (madvise(address, size, MADV_FREE))
 #endif