This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rfm
Recipients rfm
Date 2013-10-30.05:19:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383110349.25.0.857290073089.issue19444@psf.upfronthosting.co.za>
In-reply-to
Content
Same code but different problem as this issue: http://bugs.python.org/issue10897

The above-linked issue was closed as WONTFIX, but there is a secondary problem: the file descriptor that mmap.mmap() allocates is not set to close-on-exec.

This means that any process you spawn using os.system() and the like, its children, its children's children etc will inherit this file descriptor.

This is unexpected, unnecessary behavior, and potentially a huge pain if you mmap() a file and then spawn, say, inetd or something that does similar stuff, because now you have to kill every process that spawned from that in order to unmount filesystems or remove kernel modules that are being blocked as a result of the fds being open.
History
Date User Action Args
2013-10-30 05:19:09rfmsetrecipients: + rfm
2013-10-30 05:19:09rfmsetmessageid: <1383110349.25.0.857290073089.issue19444@psf.upfronthosting.co.za>
2013-10-30 05:19:09rfmlinkissue19444 messages
2013-10-30 05:19:08rfmcreate