Attachment 'thfcgi.py-stderr.patch'
Download 1 --- /home/jay/src/moin-1.5.4/MoinMoin/support/thfcgi.py Thu May 11 16:24:00 2006
2 +++ lib/python2.4/site-packages/MoinMoin/support/thfcgi.py Wed Jul 26 00:26:20 2006
3 @@ -322,17 +322,18 @@
4 self.have_finished = 1
5
6 # stderr
7 - self.err.reset()
8 - rec = Record()
9 - rec.rec_type = FCGI_STDERR
10 - rec.req_id = self.req_id
11 - data = self.err.read()
12 - while data:
13 - chunk, data = self.getNextChunk(data)
14 - rec.content = chunk
15 - rec.writeRecord(self.conn)
16 - rec.content = ""
17 - rec.writeRecord(self.conn) # Terminate stream
18 + if self.err.tell():
19 + self.err.reset()
20 + rec = Record()
21 + rec.rec_type = FCGI_STDERR
22 + rec.req_id = self.req_id
23 + data = self.err.read()
24 + while data:
25 + chunk, data = self.getNextChunk(data)
26 + rec.content = chunk
27 + rec.writeRecord(self.conn)
28 + rec.content = ""
29 + rec.writeRecord(self.conn) # Terminate stream
30
31 # stdout
32 self.out.reset()
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.