[issue23852] Wrong FD_DIR file name on OpenBSD

2015-04-03 Thread Cédric Krier
Cédric Krier added the comment: Here is a patch that uses getrlimit (that's works on OpenBSD) before using sysconf. -- Added file: http://bugs.python.org/file38824/max_fd.patch ___ Python tracker rep...@bugs.python.org

[issue23852] Wrong FD_DIR file name on OpenBSD

2015-04-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm not going to bother setting up a VM with an esoteric OS in it myself, if someone knows the past and current state of various OpenBSD versions and what to do there, feel free to commit OpenBSD conditional compilation bits as you see fit to make this do

[issue23852] Wrong FD_DIR file name on OpenBSD

2015-04-03 Thread Cédric Krier
Cédric Krier added the comment: Indeed, I think my patch is not right as /dev/fd on OpenBSD is static. I will continue to investigate. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23852

[issue23852] Wrong FD_DIR file name on OpenBSD

2015-04-03 Thread Cédric Krier
Cédric Krier added the comment: The problem comes from safe_get_max_fd which return a too low value because of a bug in sysconf on OpenBSD [1]: The value for _SC_STREAM_MAX is a minimum maximum, and required to be the same as ANSI C's FOPEN_MAX, so the returned value is a ridiculously small

[issue23852] Wrong FD_DIR file name on OpenBSD

2015-04-03 Thread Cédric Krier
Changes by Cédric Krier cedric.kr...@b2ck.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23852 ___ ___ Python-bugs-list

[issue23852] Wrong FD_DIR file name on OpenBSD

2015-04-03 Thread Stefan Krah
Stefan Krah added the comment: There's a comment in _posixsubprocess: NetBSD and OpenBSD have a /proc fs available (though not necessarily mounted) and do not have fdescfs for /dev/fd. Is this still valid? -- nosy: +skrah ___ Python tracker

[issue23852] Wrong FD_DIR file name on OpenBSD

2015-04-03 Thread Stefan Krah
Changes by Stefan Krah ste...@bytereef.org: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23852 ___ ___ Python-bugs-list

[issue23852] Wrong FD_DIR file name on OpenBSD

2015-04-03 Thread Cédric Krier
Cédric Krier added the comment: At least on OpenBSD procfs have been removed: http://www.openbsd.org/faq/current.html#20140908 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23852 ___

[issue23852] Wrong FD_DIR file name on OpenBSD

2015-04-02 Thread Davin Potts
Changes by Davin Potts pyt...@discontinuity.net: -- nosy: +davin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23852 ___ ___ Python-bugs-list

[issue23852] Wrong FD_DIR file name on OpenBSD

2015-04-02 Thread Cédric Krier
New submission from Cédric Krier: The test_subprocess fails since issue21618 on OpenBSD because the FD_DIR is wrong (/dev/fd instead of /proc/self/fd). -- files: fd_dir.patch keywords: patch messages: 239920 nosy: ced priority: normal severity: normal status: open title: Wrong FD_DIR