STINNER Victor added the comment:

> Another question: should we handle EINTR in ioctl() and fcntl()? But this is 
> a different issue.

See attached test stress.py. I tried it with ioctl() and fcntl() 
implementations of os.set_inheritable() and I got more than 10,000 signals: no 
syscalls failed with EINTR.

IMHO EINTR is only used when the syscall waits, for example wait for I/O. I 
don't think that setting FD_CLOEXEC requires any I/O.

Example:

$ ./python stress.py 
got 16871 signals

----------
Added file: http://bugs.python.org/file42497/stress.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26770>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to