summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-06-23 20:33:09 +0000
committerMike Fulbright <msf@redhat.com>2003-06-23 20:33:09 +0000
commit92d1ca6f00f2823e7f9b9460b4597d7b5fd226b3 (patch)
tree6f74951881a3c5954197a0bc7decb0838c316911 /gui.py
parentd80adf68b3a58bc1cd1fe926cdbbc85de93e5c79 (diff)
downloadanaconda-92d1ca6f00f2823e7f9b9460b4597d7b5fd226b3.tar.gz
anaconda-92d1ca6f00f2823e7f9b9460b4597d7b5fd226b3.tar.xz
anaconda-92d1ca6f00f2823e7f9b9460b4597d7b5fd226b3.zip
fix for bug #97904, however I am not pleased with the brute force technique. Could not find graceful way to solve this problem documented.
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gui.py b/gui.py
index 5dc74c652..740878e9d 100755
--- a/gui.py
+++ b/gui.py
@@ -928,6 +928,16 @@ class InstallControlWindow:
child = os.fork()
if (child == 0):
+ # close unneeded fd's
+ # Could not find any info on way to get list of existing fds
+ # other than scanning /proc/<pid>/fds (YUCK), so this will
+ # have to do.
+ for i in range(3,255):
+ try:
+ os.close(i)
+ except:
+ pass
+
os.execv(path[0], path + args)
# we are going to check several times a second to see if