Message299660
| Author | socketpair |
|---|---|
| Recipients | socketpair |
| Date | 2017-08-02.15:03:06 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1501686186.83.0.555586832167.issue31106@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
===
os.posix_fallocate(os.open('qwe.qwe', os.O_RDONLY|os.O_CREAT), 0, 1024*1024)
===
generates OSError with errno 0. Suppose this happen due to O_RDONLY flag.
strace :
====
open("qwe.qwe", O_RDONLY|O_CREAT|O_CLOEXEC, 0777) = 3
fallocate(3, 0, 0, 1048576) = -1 EBADF (Bad file descriptor)
====
Python 3.5.3, Ubuntu 64-bit. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017-08-02 15:03:06 | socketpair | set | recipients: + socketpair |
| 2017-08-02 15:03:06 | socketpair | set | messageid: <1501686186.83.0.555586832167.issue31106@psf.upfronthosting.co.za> |
| 2017-08-02 15:03:06 | socketpair | link | issue31106 messages |
| 2017-08-02 15:03:06 | socketpair | create | |