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

Re: file-descriptor probs.

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2001-09-20 16:24:55 CEST

Joe Orton <joe@manyfish.co.uk> writes:

> > The problem is that the read() returns EBADF, but there is no close(!)
>
> Was the fd opened for reading as well as writing? read(2):
>
> EBADF fd is not a valid file descriptor or is not open
> for reading.

GAH!

That was the problem!

The apr_file_t was opened with svn_io_open_unique_file, which uses
(APR_CREATE |APR WRITE | APR_EXCL) but not APR_READ! Thanks, Joe.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:42 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.