Message299660
===
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. |
|
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 | |
|