homepage

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 vstinner
Recipients neologix, vstinner
Date 2013年01月04日.14:35:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357310146.03.0.758048650169.issue16860@psf.upfronthosting.co.za>
In-reply-to
Content
> Here's the patch.
_set_cloexec() is still called whereas it is useless if the OS supports O_CLOEXEC... But the call must be kept because Linux < 2.6.23 just ignores O_CLOEXEC: we would have to check _fcntl.fcntl(fd, _fcntl.F_GETFD, 0) & _fcntl.FD_CLOEXEC to check if the kernel does really support O_CLOEXEC, which is overkill. The possibly useless syscall doesn't hurt.
> (if the file is created with O_CREAT|O_EXCL, then by definition it's not a symlink).
Ah yes, because of O_EXCL.
The patch looks good to me!
History
Date User Action Args
2013年01月04日 14:35:46vstinnersetrecipients: + vstinner, neologix
2013年01月04日 14:35:46vstinnersetmessageid: <1357310146.03.0.758048650169.issue16860@psf.upfronthosting.co.za>
2013年01月04日 14:35:46vstinnerlinkissue16860 messages
2013年01月04日 14:35:45vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /