aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2014-05-04 20:34:03 +0000
committerPascal Terjan <pterjan@gmail.com>2014-05-04 20:34:18 +0000
commit7224b1f59c5650d19fb6601585f211348fc3a79b (patch)
tree4c421d510b2530d75be261223d1107ca6318fa87
parent481dd45043755b12c3350ea11cd78d42cd3c5f7d (diff)
downloadiurt-7224b1f59c5650d19fb6601585f211348fc3a79b.tar
iurt-7224b1f59c5650d19fb6601585f211348fc3a79b.tar.gz
iurt-7224b1f59c5650d19fb6601585f211348fc3a79b.tar.bz2
iurt-7224b1f59c5650d19fb6601585f211348fc3a79b.tar.xz
iurt-7224b1f59c5650d19fb6601585f211348fc3a79b.zip
Don't close stdin if --stop is used (mga#13318)
-rw-r--r--NEWS2
-rwxr-xr-xiurt6
2 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 23aa6c2..0587574 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- don't close stdin if --stop is used (mga#13318)
+
0.6.21
- fix code handling dependencies
- fix broken error email
diff --git a/iurt b/iurt
index 3a3eeee..acf1ee8 100755
--- a/iurt
+++ b/iurt
@@ -698,8 +698,10 @@ if ($run{shell}) {
}
}
-# If not using --shell, we don't want an interactive build
-close STDIN;
+# If not using --shell or --stop, we don't want an interactive build
+if (!$run{stop}) {
+ close STDIN;
+}
# perform some cleaning before running to have some more space, rsync to
# the server too in case previous iurt crashed