Else mount can get signalled with a SIGPIPE.
Resolves: rhbz#693732 --- pyanaconda/isys/imount.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/isys/imount.c b/pyanaconda/isys/imount.c index 59e2a78..c1b7493 100644 --- a/pyanaconda/isys/imount.c +++ b/pyanaconda/isys/imount.c @@ -208,10 +208,10 @@ int mountCommandWrapper(int mode, char *dev, char *where, char *fs, else free(buffer); } - close(stdout_pipe[0]); - close(stderr_pipe[0]);
waitpid(child, &status, 0); + close(stdout_pipe[0]); + close(stderr_pipe[0]);
if (opts) { free(opts);
On 05/26/2011 11:41 AM, Ales Kozumplik wrote:
Else mount can get signalled with a SIGPIPE.
Resolves: rhbz#693732
pyanaconda/isys/imount.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/isys/imount.c b/pyanaconda/isys/imount.c index 59e2a78..c1b7493 100644 --- a/pyanaconda/isys/imount.c +++ b/pyanaconda/isys/imount.c @@ -208,10 +208,10 @@ int mountCommandWrapper(int mode, char *dev, char *where, char *fs, else free(buffer); }
close(stdout_pipe[0]);
close(stderr_pipe[0]);
waitpid(child,&status, 0);
close(stdout_pipe[0]);
close(stderr_pipe[0]);
if (opts) { free(opts);
This is also intended for rhel6. Tested on both codelines.
Ales
On Thu, May 26, 2011 at 11:41:39AM +0200, Ales Kozumplik wrote:
Else mount can get signalled with a SIGPIPE.
Resolves: rhbz#693732
pyanaconda/isys/imount.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/isys/imount.c b/pyanaconda/isys/imount.c index 59e2a78..c1b7493 100644 --- a/pyanaconda/isys/imount.c +++ b/pyanaconda/isys/imount.c @@ -208,10 +208,10 @@ int mountCommandWrapper(int mode, char *dev, char *where, char *fs, else free(buffer); }
close(stdout_pipe[0]);
close(stderr_pipe[0]);
waitpid(child, &status, 0);
close(stdout_pipe[0]);
close(stderr_pipe[0]);
if (opts) { free(opts);
-- 1.7.3.3
Ack
anaconda-devel@lists.stg.fedoraproject.org