summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-11-29 17:48:41 -0500
committerJeremy Katz <katzj@redhat.com>2007-11-29 17:48:41 -0500
commitf66fb97b131e6f4cf100b5bd48716d086eb8b836 (patch)
tree026dce9ad18eb6ce538c121d704f6ac3319d1d73 /iutil.py
parent0ce592f5fe9ff835e4dd8421784a0e3c094ed01a (diff)
downloadanaconda-f66fb97b131e6f4cf100b5bd48716d086eb8b836.tar.gz
anaconda-f66fb97b131e6f4cf100b5bd48716d086eb8b836.tar.xz
anaconda-f66fb97b131e6f4cf100b5bd48716d086eb8b836.zip
set stdin for pulse progress if needed
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/iutil.py b/iutil.py
index f6174879f..ffe5d9b4d 100644
--- a/iutil.py
+++ b/iutil.py
@@ -118,6 +118,8 @@ def execWithPulseProgress(command, argv, stdin = 0, stdout = 1, stderr = 2,
os.close(p[0])
os.dup2(p[1], 1)
os.dup2(stderr.fileno(), 2)
+ os.dup2(stdin, 0)
+ os.close(stdin)
os.close(p[1])
stderr.close()