Message263609
> 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 |
|
Date |
User |
Action |
Args |
2016-04-17 14:50:19 | vstinner | set | recipients:
+ vstinner, martin.panter, serhiy.storchaka, steve.dower |
2016-04-17 14:50:19 | vstinner | set | messageid: <1460904619.89.0.870616577106.issue26770@psf.upfronthosting.co.za> |
2016-04-17 14:50:19 | vstinner | link | issue26770 messages |
2016-04-17 14:50:19 | vstinner | create | |
|