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

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

 



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

_______________________________________________
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