Daniel Sahlberg wrote on Wed, 09 Sep 2020 10:35 +0200: > Would it be a better approach to enumerate all open fd:s before and after > the call to 'checkout' and compare the list of open fd:s (after any pool > cleanup required). Of course enumerating open fd:s most probably require > platform specific code in the regression test.
Well, of course a platform-specific test is better than no test at all, but let's try to minimize the platform dependencies. For instance, instead of using /proc, which would work only on Linux, we could use POSIX API promises to enumerate open fd's in a more portable way. (Off the top of my head, open(2) and fcntl(2) both seem like candidates.) Or maybe APR has already solved this problem. Cheers, Daniel