If the disk is full, having time to retry was nice ? Progress 90%. Nop try again...
Anyway, Warning on error would be a first i guess to spot REAL problem. (Without changing the behavior). [Mail] + Broken Pipe, WEEK END. On Fri, Nov 29, 2013 at 2:44 PM, Maxime Villard <m...@m00nbsd.net> wrote: > What about that? > > Index: ftp.c > =================================================================== > RCS file: /cvs/src/usr.bin/ftp/ftp.c,v > retrieving revision 1.83 > diff -u -r1.83 ftp.c > --- ftp.c 13 Nov 2013 20:41:14 -0000 1.83 > +++ ftp.c 29 Nov 2013 21:17:49 -0000 > @@ -1089,9 +1089,10 @@ > may_send_noop_char(); > d = 0; > do { > - wr = write(fileno(fout), buf + d, rd); > - if (wr == -1 && errno == EPIPE) > + if ((wr = write(fileno(fout), buf + d, > rd)) == -1) { > + d = -1; > break; > + } > d += wr; > rd -= wr; > } while (d < c); > > > p is set to -1 to display the proper error message > > -- --------------------------------------------------------------------------------------------------------------------- () ascii ribbon campaign - against html e-mail /\