[Patches] [Patch #101032] os.popen#.close() exit code under Windows enhancement
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 13 Aug 2000 22:05:02 -0700
Patch #101032 has been updated.
Project:
Category: core (C code)
Status: Closed
Summary: os.popen#.close() exit code under Windows enhancement
Follow-Ups:
Date: 2000-Jul-31 16:57
By: db3l
Comment:
This is an enhancement to a prior patch (100941) originally supplied to add exit code processing to the win32pipe-based routines included in posixmodule.c. Based on the need for the higher order (os.popen# where # >=2) functions to close handles in different orders, and on discussion in c.l.py, this patch removes the risk of deadlock waiting for the child previously present in certain cases. It adds tracking of all file handles returned from an os.popen* call and only waits for the child process, returning the exit code, on the closure of the final file handle to that child. It also touches the w9xpopen.c file in order to properly bubble up exit codes under Windows 95/98 to permit these changes to work on those platforms as well. The patch is rooted in the dist/src directory.
-------------------------------------------------------
Date: 2000-Aug-13 22:05
By: mhammond
Comment:
Applied.
-------------------------------------------------------
-------------------------------------------------------
For more info, visit:
http://sourceforge.net/patch/?func=detailpatch&patch_id=101032&group_id=5470