[Python-checkins] python/dist/src/Lib popen2.py,1.27,1.27.6.1

loewis at users.sourceforge.net loewis at users.sourceforge.net
Mon Oct 6 17:34:17 EDT 2003


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv21437

Modified Files:
      Tag: release23-maint
	popen2.py 
Log Message:
Patch #817329: Use SC_OPEN_MAX to determine MAXFD.


Index: popen2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/popen2.py,v
retrieving revision 1.27
retrieving revision 1.27.6.1
diff -C2 -d -r1.27 -r1.27.6.1
*** popen2.py	7 Jul 2003 21:36:19 -0000	1.27
--- popen2.py	6 Oct 2003 21:34:14 -0000	1.27.6.1
***************
*** 12,16 ****
  __all__ = ["popen2", "popen3", "popen4"]
  
! MAXFD = 256     # Max number of file descriptors (os.getdtablesize()???)
  
  _active = []
--- 12,19 ----
  __all__ = ["popen2", "popen3", "popen4"]
  
! try:
!     MAXFD = os.sysconf('SC_OPEN_MAX')
! except (AttributeError, ValueError):
!     MAXFD = 256
  
  _active = []





More information about the Python-checkins mailing list