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 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

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)

Attachment: pgpAgPzgKy4_x.pgp
Description: PGP signature

_______________________________________________
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