This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
src/winsup/cygwin ChangeLog cygserver_transpor ...
- From: scottc at cygwin dot com
- To: cygwin-cvs at cygwin dot com
- Date: 9 Jul 2002 22:42:09 -0000
- Subject: src/winsup/cygwin ChangeLog cygserver_transpor ...
CVSROOT: /cvs/src
Module name: src
Branch: cygwin_daemon
Changes by: scottc@sources.redhat.com 2002-07-09 15:42:09
Modified files:
winsup/cygwin : ChangeLog cygserver_transport_pipes.cc
Log message:
* cygserver_transport_pipes.cc: The main change is to make the
client try harder to connect to the server if it's previously
connected, and so has good grounds for believing that the server
is running.
(MAX_WAIT_NAMED_PIPE_RETRY): Change to be an enumerator.
(WAIT_NAMED_PIPE_TIMEOUT): Ditto.
(transport_layer_pipes::accept): Use interlocked operators on
`pipe_instance'.
(transport_layer_pipes::close): Rearrange so that FlushFileBuffers
and DisconnectNamedPipe are only called for accepted endpoints.
Use interlocked operators on `pipe_instance'.
(transport_layer_pipes::read): Use set_errno where required.
(transport_layer_pipes::write): Ditto.
(transport_layer_pipes::connect): Add local static variable
`assume_cygserver'. Set it if a connection is made to cygserver,
clear it if a connection is not made even after retrying. If set,
ignore all errors from CreateFile and retry the connection. Catch
the situation where WaitNamedPipe fails to wait [sic] and add a
`Sleep (0)' so that the server gets a chance to run.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&only_with_tag=cygwin_daemon&r1=1.915.2.81&r2=1.915.2.82
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygserver_transport_pipes.cc.diff?cvsroot=src&only_with_tag=cygwin_daemon&r1=1.1.2.15&r2=1.1.2.16