Louis Riviere added the comment:
Thanks Benjamin !
I should have known that Python doesn't break things :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18660
___
Benjamin Peterson added the comment:
Can you please explain what the bug is in Python; that is, what exactly was
wrong with os.read?
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18660
Benjamin Peterson added the comment:
This is not a Python bug. Linux is just not accepting 0 as a valid size
argument to read(). You don't see this using libc.read because you don't check
errno. Just don't call os.read() if size == 0.
--
resolution: - invalid
status: open - closed
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18660
___
___
New submission from Louis RIVIERE:
A call to os.read that used to work on older Linux kernel, doesn't anymore with
newer Linux kernel.
As a workaroud we can use libc.read (ctypes) instead of os.read.
But I feel like os.read should work, as it used to.
The code (and comments) can be seen here :
Changes by Ronald Oussoren ronaldousso...@mac.com:
--
nosy: +ronaldoussoren
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18660
___
___