[issue20057] wrong behavior with fork and mmap

2013-12-23 Thread Brett Tiplitz
Brett Tiplitz added the comment: Man page currently says as follows: (this does not says it's deprecated or that files have to be closed on exec)... So I'd think some more comments would help. And as mentioned, which a user can close his own fd's, the mmap call creates a

[issue20057] wrong behavior with fork and mmap

2013-12-23 Thread Brett Tiplitz
Brett Tiplitz added the comment: Changing the code to subprocess.call(["/bin/ls", "-l", "/proc/self/fd"]) and running this on Python 3.3 does show this as being resolved by the broader fix implemented in PEP 446. It does seem bad that the os.system call remai

[issue20057] wrong behavior with fork and mmap

2013-12-23 Thread Brett Tiplitz
New submission from Brett Tiplitz: When running the example mmap library (with a slight modification, plus I did not handle all the changes for the 3.3 string handling as the example posted does not work with 3.x) When looking at the subprocess, the spawned process will have all the mmap&#