FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Red Hat Linux

 
 
LinkBack Thread Tools
 
Old 05-26-2011, 09:41 AM
Ales Kozumplik
 
Default imount.c: first wait() for mount then close its stdin/stdout.

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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 08:39 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org