Message4013
This code generate a error
##########################
import threading
import os
class TestPopen( threading.Thread ):
def run( self ):
while 1:
f = os.popen( "ls -l /" )
lines = f.read()
f.close()
if __name__ == "__main__":
for i in range(50):
t = TestPopen()
t.start()
###########################
it eventually dies w/ IOErrors in the f.close() calls.
My system is:
Linux RedHat 6.2
Python 1.5.2
I tested in Python 2.0 and the same error occur.
|
|
Date |
User |
Action |
Args |
2007-08-23 13:53:41 | admin | link | issue410608 messages |
2007-08-23 13:53:41 | admin | create | |
|