From owner-freebsd-questions Wed Jun 27 19:44:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by hub.freebsd.org (Postfix) with ESMTP id 6DFEB37B403 for ; Wed, 27 Jun 2001 19:44:49 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (root@spare0.gsoft.com.au [203.38.152.114]) by cain.gsoft.com.au (8.8.8/8.8.8) with ESMTP id MAA02704; Thu, 28 Jun 2001 12:14:35 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.4.7 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010628024057.71824.qmail@web10705.mail.yahoo.com> Date: Thu, 28 Jun 2001 12:14:35 +0930 (CST) From: "Daniel O'Connor" To: Manas Bhatt Subject: RE: does data overflow in pipes Cc: questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 28-Jun-2001 Manas Bhatt wrote: > hi all, > pipes uses only direct blocks to store data. so > depending on the blocksize , a total data of > 10*blocksize can be written in one go but what happens > if a writer process tries to write more 10*blocksize > of data in one go. Does the kernel overwrites the > data in pipe or not ? if yes, why? if not, then how > does it allow the writer to write more 10*blocksize of > data? > if someone can direct me to implementation > (source files), it would be great. This is a questions post I think. If it is blocking IO the writer will block until some data is read from the pipe, if it is non blocking then it will return a short write. --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message