diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-01-27 15:54:00 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-01-27 15:55:12 +0000 |
commit | e85fbee7bff9422a370d3f437594d262c043d89b (patch) | |
tree | 1af59442c0cd7032a2fbaa9089fe5f8b3a0bf5c9 /daemon | |
parent | 8a406c7bee521289c6f8704549f1f144b5bbbbd9 (diff) | |
download | libguestfs-e85fbee7bff9422a370d3f437594d262c043d89b.tar.gz libguestfs-e85fbee7bff9422a370d3f437594d262c043d89b.tar.xz libguestfs-e85fbee7bff9422a370d3f437594d262c043d89b.zip |
daemon: Add perror to two exit paths to make errors clearer.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/guestfsd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index 16b900f0..8d950fa1 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -258,6 +258,7 @@ main (int argc, char *argv[]) "output to the libguestfs developers, either in a bug report\n" "or on the libguestfs redhat com mailing list.\n" "\n"); + perror ("/dev/virtio-ports/org.libguestfs.channel.0"); exit (EXIT_FAILURE); } @@ -270,8 +271,10 @@ main (int argc, char *argv[]) xdrmem_create (&xdr, lenbuf, sizeof lenbuf, XDR_ENCODE); xdr_u_int (&xdr, &len); - if (xwrite (sock, lenbuf, sizeof lenbuf) == -1) + if (xwrite (sock, lenbuf, sizeof lenbuf) == -1) { + perror ("xwrite"); exit (EXIT_FAILURE); + } xdr_destroy (&xdr); |