X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=daemon%2Fguestfsd.c;fp=daemon%2Fguestfsd.c;h=c0d524aa2897c2b9cce55d87541294b5b789923d;hb=f606a79ed7a20ee59bc0755b1030c6d29e503724;hp=ef28d9b698f39d2af008fbd4bc9b6d6acfa716fe;hpb=b52ef0b021fc443d88d4d9c43f57468712e40965;p=libguestfs.git diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index ef28d9b..c0d524a 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -41,6 +41,7 @@ #include #include #include +#include #ifdef HAVE_PRINTF_H # include @@ -758,20 +759,20 @@ commandrvf (char **stdoutput, char **stderror, int flags, */ if (pipe (so_fd) == -1 || pipe (se_fd) == -1) { - perror ("pipe"); + error (0, errno, "pipe"); abort (); } if (flag_copy_stdin) { if (pipe (stdin_fd) == -1) { - perror ("pipe"); + error (0, errno, "pipe"); abort (); } } pid = fork (); if (pid == -1) { - perror ("fork"); + error (0, errno, "fork"); abort (); } @@ -805,7 +806,7 @@ commandrvf (char **stdoutput, char **stderror, int flags, stdin_pid = fork (); if (stdin_pid == -1) { - perror ("fork"); + error (0, errno, "fork"); abort (); }