<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
# HG changeset patch
# User Thomas Waldmann &lt;tw AT waldmann-edv DOT de&gt;
# Date 1263941977 -3600
# Node ID 3e6b8234861cbbbec3028552eff2c888ad669882
# Parent  9652b2e16a10611478fdb1215bffcc43d56be60f
partially revert 0dd02729b3b5 (self.timeout related changes caused AttributeError)

--- a/MoinMoin/util/SubProcess.py	Tue Jan 19 00:46:31 2010 +0100
+++ b/MoinMoin/util/SubProcess.py	Tue Jan 19 23:59:37 2010 +0100
@@ -67,6 +67,8 @@
 
         communicate() returns a tuple (stdout, stderr)."""
 
+        self.timeout = timeout
+
         # Optimization: If we are only using one pipe, or no pipe at
         # all, using select() or threads is unnecessary.
         if [self.stdin, self.stdout, self.stderr].count(None) &gt;= 2:
@@ -111,9 +113,9 @@
                 self.stdin.close()
 
             if self.stdout:
-                stdout_thread.join(timeout)
+                stdout_thread.join(self.timeout)
             if self.stderr:
-                stderr_thread.join(timeout)
+                stderr_thread.join(self.timeout)
 
             # if the threads are still alive, that means the thread join timed out
             timed_out = (self.stdout and stdout_thread.isAlive() or
@@ -167,7 +169,7 @@
             input_offset = 0
             while read_set or write_set:
                 try:
-                    rlist, wlist, xlist = select.select(read_set, write_set, [], timeout)
+                    rlist, wlist, xlist = select.select(read_set, write_set, [], self.timeout)
                 except select.error, e:
                     if e.args[0] == errno.EINTR:
                         continue

</pre></body></html>