Re: [master] imount.c: first wait() for mount then close its stdin/stdout.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux