Rsync: found the problem

Corinna Vinschen cygwin@cygwin.com
Fri Aug 3 10:07:00 GMT 2001


On Fri, Aug 03, 2001 at 01:08:26PM +0100, Bill Petheram wrote:
> 
> What seems to happen is that rsh reads from stdin. rsh sets stdin to be
> O_BINARY. However in _read (syscalls.cc) the wait flag is NOT set, so
> _read returns -1 and EAGAIN. So stdin for rsh has been set to no delay,
> probably by rsync.
> 
> What are the rules for inheriting flags and socket options across forks?

sockets are copied across forks using a Winsock2 copy mechanism

	WSADuplicateSocket
	WSASocket

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list