Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3B6A943A.10E925C8@hplb.hpl.hp.com>
Date: Fri, 03 Aug 2001 13:08:26 +0100
From: Bill Petheram <bilpet@hplb.hpl.hp.com>
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 <cygwin@cygwin.com>, Lapo Luchini <lapo@lapo.it>
Subject: Rsync: found the problem
References: <610A1F4808E9D411888F0001023F6361A2EC@MUCX> <3B46E116.20508.C8E5ACB@localhost> <20010707095422.C7298@redhat.com> <3B499BF7.6D8FCABC@hplb.hpl.hp.com> <20010709222226.A16128@cygbert.vinschen.de> <3B6960FA.8099DD72@hplb.hpl.hp.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/

