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

Re: svn commit: r10819 - trunk/subversion/libsvn_subr

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2004-09-06 04:24:35 CEST

On Sun, 2004-09-05 at 19:52, Branko Čibej wrote:
> >I didn't think Windows really had the concept of file descriptors
> >outside of the POSIX terarium, much less file descriptors which (by
> >virtue of their numbers) map onto stdin/stdout/stderr.

> Windows has all of that, even though it's simulated by the C runtime
> library. That's why I'd like to see proof (either through testing, or
> BDB code review) that this problem really doesn't occur on Windows

BDB code review? I'm not sure how that could be relevant.

On Unix, the bindings of fds 0/1/2 at process startup are purely in the
hands of the calling process; the fork() and exec() calls don't care
about them. In the Windows world,
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp
and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/startupinfo_str.asp
suggest that there is much more structure involved. I don't know what
happens if you pass INVALID_HANDLE_VALID in the startup info structure,
but it seems likely that Windows will do something intelligent (either
mapping that file handle to the console, or mapping it to a null
device).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Sep 6 04:24:59 2004

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.