Author martin.panter
Recipients desbma, josh.r, martin.panter, r.david.murray
Date 2015-10-31.08:08:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:00martin.pantersetrecipients: + martin.panter, r.david.murray, desbma, josh.r
2015-10-31 08:08:00martin.pantersetmessageid: <>
2015-10-31 08:08:00martin.panterlinkissue25156 messages
2015-10-31 08:08:00martin.pantercreate