[Buildbot-commits] buildbot/buildbot/slave commands.py,1.69,1.70
Brian Warner
warner at users.sourceforge.net
Sun Nov 5 04:56:05 UTC 2006
Update of /cvsroot/buildbot/buildbot/buildbot/slave
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv28649/buildbot/slave
Modified Files:
commands.py
Log Message:
[project @ Seek to current file position to clear EOF status on Mac OS X.]
Mac OS X and Linux differ in behaviour when reading from a file that has previously reached EOF. On
Linux, any new data that has been appended to the file will be returned. On Mac OS X, the empty string
will always be returned. Seeking to the current position in the file resets the EOF flag on Mac OS X
and will allow future reads to work as intended.
Original author: code at bdash.net.nz
Date: 2006-11-02 02:55:04
Index: commands.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/slave/commands.py,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- commands.py 13 Oct 2006 07:29:58 -0000 1.69
+++ commands.py 5 Nov 2006 04:56:03 -0000 1.70
@@ -196,6 +196,7 @@
return # no file to work with
self.f = open(self.logfile, "rb")
self.started = True
+ self.f.seek(self.f.tell(), 0)
while True:
data = self.f.read(10000)
if not data:
More information about the Commits
mailing list