develooper Front page | perl.libwww | Postings from August 2001

Re: [PATCH] Resolve "Short Write"

Thread Previous | Thread Next
Norton Allen
August 7, 2001 11:08
Re: [PATCH] Resolve "Short Write"
Message ID:
Gisle Aas wrote:
> Norton Allen <> writes:
> > The "short write" error reported by is a shorthand for
> > "Your operating system has exploited a perfectly legal feature
> > that apparently has not been encountered in other operating
> > systems to date."
> It is also shorthand for "Gisle is lazy" :-)
> > That feature is the possibility that syswrite
> > might return having only written part of the requested record,
> > and I have encountered it under QNX4 for file sizes in excess
> > of 10K bytes. This patch does the obvious loop to write out the
> > rest.
> Thanks.  There are two other places in that dies with "short
> write".  Do you care enough to patch them all or did you decide that
> the others where less likely to happen?

  I deemed them more unlikely, since I believe they are dealing
  with header stuff, which is likely to be much shorter than the
  content, but clearly I'm exhibiting laziness in choosing to not
  patch them as well. If you like, I can make it right

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About