[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Fix bug where stdout was spuriously closed after genera...



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv24482/lib/mixminion

Modified Files:
	ClientMain.py 
Log Message:
Fix bug where stdout was spuriously closed after generating surbs [21]

Index: ClientMain.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ClientMain.py,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- ClientMain.py	4 Jan 2004 02:46:28 -0000	1.147
+++ ClientMain.py	7 Jan 2004 20:42:49 -0000	1.148
@@ -1645,7 +1645,8 @@
         else:
             out.write(surb.packAsText())
 
-    out.close()
+    if outputFile != '-':
+        out.close()
 
 _INSPECT_SURBS_USAGE = """\
 Usage: %(cmd)s [options] <files>