From owner-cvs-all@FreeBSD.ORG Wed Dec 17 11:53:39 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A717716A4CE; Wed, 17 Dec 2003 11:53:39 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id A60EE43D46; Wed, 17 Dec 2003 11:53:38 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id hBHJrbHx028496; Wed, 17 Dec 2003 14:53:38 -0500 (EST) Date: Wed, 17 Dec 2003 14:53:37 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Nate Lawson In-Reply-To: <20031217113610.N70711@root.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc_r/uthread uthread_write.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2003 19:53:39 -0000 On Wed, 17 Dec 2003, Nate Lawson wrote: > On Wed, 17 Dec 2003, Daniel Eischen wrote: > > On Wed, 17 Dec 2003, Nate Lawson wrote: > > > > > On Wed, 17 Dec 2003, Daniel Eischen wrote: > > > > Modified files: > > > > lib/libc_r/uthread uthread_write.c > > > > Log: > > > > Return to the caller if write() returns 0. [...] > > > > > > Thanks! Oh what a difference one retval makes. > > > > Does this fix something other than bacula? > > Anyone else who expected this semantics. I have no specific examples. I think it probably only pertinent to writing to tape devices where a 0 return means end of tape. Otherwise you should get -1 with an appropriate errno or just wait until all the requested data has been written. I asked if this fixed something because I was asked if this was a 5.2R candidate. -- Dan Eischen