G2P added the comment:
The bug still exists in Python 2.6 (2.6.7-4ubuntu2). Python 2.7
(2.7.3-5ubuntu4) works correctly. I don't have Python 2.5 on hand to check.
Here is a very simple test case:
import array, fcntl
buf = array.array('B', [0]*1024)
fcntl.ioctl(0, termios.TIOCGPGRP, buf, 1)
assert any(by != 0 for by in buf)
----------
nosy: +G2P
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue1520818>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com