Antoine Pitrou <pit...@free.fr> added the comment: > That was thorough :-) Seems OK though. > > + if (n < size) { > + PyErr_SetString(PyExc_IOError, "failed to write all pollfds. " > + "Please, report in http://bugs.python.org/"); > > If n < size, it's not a Python error is it? I would say it's the OS's fault.
No, but it's a Python error if Python wrongly assumes that write() won't return a partial result. Ideally write() should be retried in a loop until everything is written out. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6397> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com