Hi, I'm having the same bug here. Redirecting /dev/null to stdin or using os.close(0) fixes the problem as mentioned in the previous emails. Also the problem is in python2.5 because the bug doesn't occur when running the same script with python2.4 explicitly. Thanks, Mathieu Blondel