]> git.ozlabs.org Git - ccan/commit
failtest: don't assume FD_SETSIZE is maximum runtime fd.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 8 Mar 2012 03:44:22 +0000 (14:14 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 8 Mar 2012 03:44:55 +0000 (14:14 +1030)
commita85a809bb17af6b6cf6fa31b300c6622f64ee700
treedf54a4f89a0c7b4c61e668b3dc6ecf1c9f6ae1e9
parent836119375a6c477747bc85a4a384a98599610f73
failtest: don't assume FD_SETSIZE is maximum runtime fd.

This breaks when rlimit is less.  Unfortunately, valgrind (32 bit x86,
3.7.0.SVN, Ubuntu) fails to set the file limit properly on the test:
reducing it to the obvious getrlimit/setrlimit/getrlimit works fine,
so leaving diagnostics for another day.
ccan/failtest/_info
ccan/failtest/failtest.c
ccan/failtest/test/run-with-fdlimit.c [new file with mode: 0644]