Message253781
Also, man pages for Free BSD and OS X (where writing to a disk file is not supported) say it raises:
* ENOTSUP if “the ‘fd’ argument does not refer to a regular file”
* EBADF if “the ‘s’ argument is not a valid socket descriptor”
* ENOTSOCK if “the ‘s’ argument is not a socket”
* EOPNOTSUPP if “the file system for descriptor fd does not support sendfile()”
It is not clear what the priority of these errors is, so it might be safest to catch them all. But I wouldn’t catch any arbitrary OSError, because you may end up doing weird double copying or something for an out-of-space error. |
|
Date |
User |
Action |
Args |
2015-10-31 08:08:00 | martin.panter | set | recipients:
+ martin.panter, r.david.murray, desbma, josh.r |
2015-10-31 08:08:00 | martin.panter | set | messageid: <1446278880.37.0.421335821887.issue25156@psf.upfronthosting.co.za> |
2015-10-31 08:08:00 | martin.panter | link | issue25156 messages |
2015-10-31 08:08:00 | martin.panter | create | |
|