Displaying 2 results from an estimated 2 matches for "932,21".
Did you mean:
32,21
2015 Dec 02
3
[PATCH] daemon: improve internal commandrvf
...OOT 4096
extern int commandf (char **stdoutput, char **stderror, int flags,
const char *name, ...) __attribute__((sentinel));
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
index 0a29aa6..47245f7 100644
--- a/daemon/guestfsd.c
+++ b/daemon/guestfsd.c
@@ -932,21 +932,44 @@ commandrvf (char **stdoutput, char **stderror, int flags,
signal (SIGPIPE, SIG_DFL);
close (0);
if (flag_copy_stdin) {
- dup2 (flag_copy_fd, STDIN_FILENO);
+ if (dup2 (flag_copy_fd, STDIN_FILENO) == -1) {
+ perror ("dup2/flag_copy_fd");
+...
2015 Dec 02
0
Re: [PATCH] daemon: improve internal commandrvf
...tern int commandf (char **stdoutput, char **stderror, int flags,
> const char *name, ...) __attribute__((sentinel));
> diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
> index 0a29aa6..47245f7 100644
> --- a/daemon/guestfsd.c
> +++ b/daemon/guestfsd.c
> @@ -932,21 +932,44 @@ commandrvf (char **stdoutput, char **stderror, int flags,
> signal (SIGPIPE, SIG_DFL);
> close (0);
> if (flag_copy_stdin) {
> - dup2 (flag_copy_fd, STDIN_FILENO);
> + if (dup2 (flag_copy_fd, STDIN_FILENO) == -1) {
> + perror ("du...