Chuck wrote:
> Did you try a simple Python program yet, like you mentioned earlier?
Just did, it reproduces the problem well. I tried running with "nohup
python -u term.py" and it still fails. Below is the code for term.py
and below that is part of x.txt. Now what?
import time, traceback
def w(s):
f = open("x.txt","a")
f.write(s)
f.close()
def wtrace():
f = open("x.txt",'a')
traceback.print_exc(file=f)
f.write("\n")
f.close()
if __name__ == '__main__':
while 1:
w("\n")
for x in range(1023,1026):
s = "X" * x
w("about to write %d bytes.\n" % x)
try:
print s
except:
w("ERROR")
wtrace()
time.sleep(5)
This is a "tail -f x.txt" from another terminal:
about to write 1024 bytes.
ERRORTraceback (most recent call last):
File "term.py", line 22, in ?
print s
IOError: [Errno 5] Input/output error
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel