From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: Charles Forsyth Date: Tue, 31 Aug 2010 00:22:52 +0100 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] P9p on Fedora 12 Topicbox-Message-UUID: 4ae65a22-ead6-11e9-9d60-3106f5b1d025 in rcinputproc s = setecho(sfd, 0); if(write(rcfd, pair.s, pair.ns) < 0) threadexitsall(nil); if(s) setecho(sfd, s); there's a race between setting echo off, writing to rcfd, resetting echo and the reader of the other side of rcfd. a sleep(1) before if(s) makes it less frequent because the reader gets to read the data in the right mode. i haven't really looked at what linux is doing that allows that, or what changed between revisions. it's not my observation, it was on a list or issue comment somewhere, presumably for p9p. i can't find the bookmark.