Daemon: fix handling of errors from xread and xwrite.
authorRichard Jones <rjones@trick.home.annexia.org>
Thu, 17 Sep 2009 14:28:41 +0000 (15:28 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Thu, 17 Sep 2009 15:05:39 +0000 (16:05 +0100)
commitabac360f324d8c881878c5d9b7fb64be93981125
tree78f3b482e8df08c7c4065df1b668eee91a033b83
parentbb02f0fbe80ef093731bc9a6a407f1edaccf991d
Daemon: fix handling of errors from xread and xwrite.

If xread or xwrite returns -1, that indicates an error and we
should exit.  Note that xread/xwrite has already printed the
error message.
daemon/daemon.h
daemon/guestfsd.c
daemon/proto.c