diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-03-14 16:12:54 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-03-14 16:12:54 +0000 |
commit | 5da61d30520315a7d5060137a6c109f2109a7631 (patch) | |
tree | 9a49e9b59e04793ea746d1649efa88c15293dec6 /daemon | |
parent | 9974c42a29d60e6d1364c7d39f8c952604d41012 (diff) | |
download | libguestfs-5da61d30520315a7d5060137a6c109f2109a7631.tar.gz libguestfs-5da61d30520315a7d5060137a6c109f2109a7631.tar.xz libguestfs-5da61d30520315a7d5060137a6c109f2109a7631.zip |
daemon: When copy subprocess fails, print return code.
Useful for debugging.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/guestfsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index 43f41df0..ac89a214 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -912,7 +912,7 @@ commandrvf (char **stdoutput, char **stderror, int flags, } if (!WIFEXITED (r) || WEXITSTATUS (r) != 0) { - fprintf (stderr, "failed copying from input file, see earlier messages\n"); + fprintf (stderr, "failed copying from input file, see earlier messages (r = %d)\n", r); kill (pid, 9); waitpid (pid, NULL, 0); return -1; |