Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Dec 2003 14:53:37 -0500 (EST)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Nate Lawson <nate@root.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc_r/uthread uthread_write.c
Message-ID:  <Pine.GSO.4.10.10312171448020.26635-100000@pcnet5.pcnet.com>
In-Reply-To: <20031217113610.N70711@root.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10312171448020.26635-100000>