Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3B6A943A.10E925C8@hplb.hpl.hp.com> Date: Fri, 03 Aug 2001 13:08:26 +0100 From: Bill Petheram Organization: TESL, HP Labs Bristol X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3-20mdksmp i686) X-Accept-Language: en MIME-Version: 1.0 To: Corinna Vinschen , Lapo Luchini Subject: Rsync: found the problem References: <610A1F4808E9D411888F0001023F6361A2EC AT MUCX> <3B46E116 DOT 20508 DOT C8E5ACB AT localhost> <20010707095422 DOT C7298 AT redhat DOT com> <3B499BF7 DOT 6D8FCABC AT hplb DOT hpl DOT hp DOT com> <20010709222226 DOT A16128 AT cygbert DOT vinschen DOT de> <3B6960FA DOT 8099DD72 AT hplb DOT hpl DOT hp DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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? bill -- 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/