This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:06socketpairsetrecipients: + socketpair
2017-08-02 15:03:06socketpairsetmessageid: <1501686186.83.0.555586832167.issue31106@psf.upfronthosting.co.za>
2017-08-02 15:03:06socketpairlinkissue31106 messages
2017-08-02 15:03:06socketpaircreate