summaryrefslogtreecommitdiffstats
path: root/daemon/daemon.h
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-20 12:29:46 +0200
committerJim Meyering <meyering@redhat.com>2009-08-20 15:59:53 +0200
commitd1c35f871022e40f9abd93048c1115c6565f94cb (patch)
treefc408da49d2690ede7c15bd6b9db0f67f56e4db4 /daemon/daemon.h
parent0c92c583d5291e1a3a966b36f107bf48e4bfad93 (diff)
downloadlibguestfs-d1c35f871022e40f9abd93048c1115c6565f94cb.tar.gz
libguestfs-d1c35f871022e40f9abd93048c1115c6565f94cb.tar.xz
libguestfs-d1c35f871022e40f9abd93048c1115c6565f94cb.zip
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.
Diffstat (limited to 'daemon/daemon.h')
-rw-r--r--daemon/daemon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/daemon.h b/daemon/daemon.h
index 0ce56e18..83c9672d 100644
--- a/daemon/daemon.h
+++ b/daemon/daemon.h
@@ -116,7 +116,7 @@ extern void cancel_receive (void);
* Note max write size if GUESTFS_MAX_CHUNK_SIZE.
*/
extern int send_file_write (const void *buf, int len);
-extern void send_file_end (int cancel);
+extern int send_file_end (int cancel);
/* only call this if there is a FileOut parameter */
extern void reply (xdrproc_t xdrp, char *ret);