STINNER Victor added the comment:
Hum, I'm surprised that SELinux blocks such safe function. Maybe the SELinux
policy should be completed to allow it?
Detect when ioctl() fails with EACCESS and fallback to fnctl() sounds like a
good option. But do you expect ioctl() to always fail with EACCESS? Or only
fail sometimes, or only on some file descriptors? Your patch remembers that
ioctl() fails once and never retries.
About your patch: please add a comment explaining why you fallback with a
reference to this issue ("Issue #27057").
----------
nosy: +haypo
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue27057>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com