Skip to content

Commit 1d9d16e

Browse files
committed
Merged revisions 85554 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85554 | r.david.murray | 2010-10-15 19:12:57 -0400 (Fri, 15 Oct 2010) | 4 lines #9862: On AIX PIPE_BUF is broken. Make it 512. Patch by Sébastien Sablé. ........
1 parent 63e284d commit 1d9d16e

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ What's New in Python 2.7.1?
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #9862: Compensate for broken PIPE_BUF in AIX by hard coding
14+
its value as the default 512 when compiling on AIX.
15+
1316
- Issue #10068: Global objects which have reference cycles with their module's
1417
dict are now cleared again. This causes issue #7140 to appear again.
1518

Modules/selectmodule.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,6 +1768,10 @@ initselect(void)
17681768
PyModule_AddObject(m, "error", SelectError);
17691769

17701770
#ifdef PIPE_BUF
1771+
#ifdef HAVE_BROKEN_PIPE_BUF
1772+
#undef PIPE_BUF
1773+
#define PIPE_BUF 512
1774+
#endif
17711775
PyModule_AddIntConstant(m, "PIPE_BUF", PIPE_BUF);
17721776
#endif
17731777

configure.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4261,6 +4261,12 @@ AC_CHECK_TYPE(socklen_t,,
42614261
#endif
42624262
])
42634263

4264+
case $ac_sys_system in
4265+
AIX*)
4266+
AC_DEFINE(HAVE_BROKEN_PIPE_BUF, 1, [Define if the system reports an invalid PIPE_BUF value.]) ;;
4267+
esac
4268+
4269+
42644270
AC_SUBST(THREADHEADERS)
42654271

42664272
for h in `(cd $srcdir;echo Python/thread_*.h)`

0 commit comments

Comments
 (0)