From 76253c4dc4f42c9447c8cc76eb485c8eda2cac2f Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 9 Feb 2015 22:02:30 +0000 Subject: [PATCH] Reduce the number of fds the fdpass test uses It was relying on a higher-than-default fd limit; cut it down to more than 256 but rather less than 1024, since the default Linux limit is 1024 fds per user. --- test/fdpass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fdpass.c b/test/fdpass.c index fa958da..8e5f92a 100644 --- a/test/fdpass.c +++ b/test/fdpass.c @@ -59,7 +59,7 @@ _DBUS_STATIC_ASSERT (MAX_MESSAGE_UNIX_FDS <= 253); /* Arbitrary, except that MAX_MESSAGE_UNIX_FDS * SOME_MESSAGES must be * less than the process's file descriptor limit. */ -#define SOME_MESSAGES 50 +#define SOME_MESSAGES 20 /* Linux won't allow more than 253 fds per sendmsg(). */ #define TOO_MANY_FDS 255 -- 2.1.4