[issue15948] Unchecked return value of I/O functions
Марк Коренберг
report at bugs.python.org
Mon Mar 7 05:54:24 EST 2016
Марк Коренберг added the comment:
In a common case,
if (write(thread.fd, thread.header, thread.header_len) == -1)
should be replaced with
if (write(thread.fd, thread.header, thread.header_len) != thread.header_len)
----------
nosy: +mmarkk
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15948>
_______________________________________
More information about the Python-bugs-list
mailing list