bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Windows CVS 1.12.12.1 Latest + Patch - "version" Command Hangs


From: Conrad T. Pino
Subject: RE: Windows CVS 1.12.12.1 Latest + Patch - "version" Command Hangs
Date: Sat, 24 Sep 2005 21:52:48 -0700

> From: Derek Price
> 
> Is there some way to find out if a
> file descriptor is ready for read or write in Windows, other than select?

Yes but it won't be a portable and might not work with anything other than a
MS compiler and perhaps later version might be problems.  Unfortunately we've
already bitten this bullet.  Check out line 634 in "windows-NT/run.c" file:

http://msdn.microsoft.com/library/en-us/vclib/html/_CRT__open_osfhandle.asp

MS VC6 C run time doesn't return OS file handles.  They are an index into
an internal "typedef struct { } ioinfo;" array.  MS VC6 does provide:
http://msdn.microsoft.com/library/en-us/vclib/html/_CRT__open_osfhandle.asp
which will return the Win32 Native API HANDLE created with "CreatePipe" in
the "windows-NT/run.c my_pipe" function.

This is the most promising approach to me only works with pipes:
http://msdn.microsoft.com/library/en-us/ipc/base/peeknamedpipe.asp

Are you looking for a solution to disk files too?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]