On Tue, 13 Nov 2001 15:01:39 -0500, I posted the following (using the same subject line as I am using now): > > I am on Win2K, and I have tried the following tests using > cvsnt_1.11.1.1 and cvsnt_1.11.1.2 with the same result. > > I should note that this is my first CVS experience, so > this might be a setup problem. > > I am trying to run both the server and the client on the same > machine. > > I have tried the suggestions in > <URL:http://www.devguy.com/fp/cfgmgmt/cvs/cvs_admin_nt.htm>, > but I think I might be in uncharted waters now. > > In one cmd window, I start cvsservice with the -test option: > CVS 1.11.1.1 (Build 27) (Aug 2 2001) starting in test mode. > Starting pserver on port 2401/tcp... > Started ntserver... > > In another window, I "telnet localhost 2401", and that clears > the screen and exits right away (the above website says that > it should wait for input). > > Back in the cvsservice window, I get: > 018f7dd4: Process 00000254 started in pserver mode > 018f7e2e: Process 00000254 terminated > > For some reason, when cvsservice starts a sub-process using > cvs --ALLOW-ROOT=C:\CVSROOT pserver > (this would be in the DoCvsThread() function of Service.cpp), > the process exits immediately... no error messages. > > Has anyone seen this before? Any suggestions? > > Thanks!
Since then, I have been busy putting trace statements into the code, and have finally isolated the problem down to this: -- the server copy of CVS.exe starts -- src\server.c pserver_authenticate_connection() calls lib\getline.c getline_safe() which calls lib\getline.c getstr() which executes c = getc (stream); At this point, the value of c is EOF, ferror(stream) returns -1 EBADF, and it's downhill from there. Something seems to have gone wrong with the file handle for stdin, which (as you know) began its life as a socket handle in cvsservice, was duplicated, and passed via CreateProcess handle inheritance to the CVS.exe server process. The posting from Bertrand did satisfy me that the handles were not erroneously being closed (Hi Bertrand! Long time since the days of C-SET2 FORUM, eh? :-) It has been a while since I was deep into Win32 programming. I didn't know, for example, that a socket handle could be passed to a process and then read as if it were a file handle (I've only seen that done in Unix, and Java). I have ZoneAlarm 2.6.231 installed on this machine, but I get the same symptoms whether or not it is running. I hope that I've provided a new clue that someone will recognize. -- Eric Diamond _______________________________________________ Cvsnt mailing list [EMAIL PROTECTED] http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt