Richard Oudkerk <[email protected]> added the comment:
Actually, if you replace
print(os.popen("uname").read())
with
f = os.popen("uname")
print(f.read())
f.close()
or
with os.popen("uname") as f:
print(f.read())
then things should work. This is because f.close() waits for the pid.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15408>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com