Stress tests failed due to lack of fds for mac. The problem was in the
libev library where DARWIN_UNLIMITED_SELECT flag was defined too late
to do the trick.
Closes #3867, #4673
third_party/libev/ev.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/third_party/libev/ev.c b/third_party/libev/ev.c
index 6a2648591..b65a77e0e 100644
--- a/third_party/libev/ev.c
+++ b/third_party/libev/ev.c
@@ -196,6 +196,14 @@
# define ECB_NO_SMP 1
#endif
+/* OS X, in its infinite idiocy, actually HARDCODES
+ * a limit of 1024 into their select. Where people have brains,
+ * OS X engineers apparently have a vacuum. Or maybe they were
+ * ordered to have a vacuum, or they do anything for money.
+ * This might help. Or not.
+ */
+#define _DARWIN_UNLIMITED_SELECT 1
+
#ifndef _WIN32
# include <sys/time.h>
# include <sys/wait.h>
@@ -211,14 +219,6 @@
# undef EV_AVOID_STDIO
#endif
-/* OS X, in its infinite idiocy, actually HARDCODES
- * a limit of 1024 into their select. Where people have brains,
- * OS X engineers apparently have a vacuum. Or maybe they were
- * ordered to have a vacuum, or they do anything for money.
- * This might help. Or not.
- */
-#define _DARWIN_UNLIMITED_SELECT 1
-
/* this block tries to deduce configuration from header-defined symbols and defaults */
/* try to deduce the maximum number of signals on this platform */
--
2.24.0