daemon: diagnose socket write failure
authorJim Meyering <meyering@redhat.com>
Thu, 20 Aug 2009 10:29:46 +0000 (12:29 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 20 Aug 2009 13:59:53 +0000 (15:59 +0200)
commitd1c35f871022e40f9abd93048c1115c6565f94cb
treefc408da49d2690ede7c15bd6b9db0f67f56e4db4
parent0c92c583d5291e1a3a966b36f107bf48e4bfad93
daemon: diagnose socket write failure

* daemon/proto.c (send_chunk): Don't ignore socket-write error.
* daemon/proto.c (send_file_end): Return "int", not void,
so we can propagate send_chunk failure to caller.
* daemon/daemon.h (send_file_end): Update prototype.
* daemon/tar.c (do_tar_out, do_tgz_out): Update uses of send_file_end.
* daemon/upload.c (do_download): Likewise.
daemon/daemon.h
daemon/proto.c
daemon/tar.c
daemon/upload.c