[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [ISSUE] Cancelling svn checkout leaves an open file handle

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 9 Sep 2020 17:40:16 +0000

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
Received on 2020-09-09 19:40:24 CEST

This is an archived mail posted to the Subversion Dev mailing list.