summaryrefslogtreecommitdiffstats
path: root/daemon/guestfsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/guestfsd.c')
-rw-r--r--daemon/guestfsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
index af554bf7..7c4e72e4 100644
--- a/daemon/guestfsd.c
+++ b/daemon/guestfsd.c
@@ -233,7 +233,8 @@ main (int argc, char *argv[])
exit (1);
}
- (void) xwrite (sock, buf, xdr_getpos (&xdr));
+ if (xwrite (sock, buf, xdr_getpos (&xdr)) == -1)
+ exit (1);
xdr_destroy (&xdr);