Message201709
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. |
|
Date |
User |
Action |
Args |
2013-10-30 05:19:09 | rfm | set | recipients:
+ rfm |
2013-10-30 05:19:09 | rfm | set | messageid: <1383110349.25.0.857290073089.issue19444@psf.upfronthosting.co.za> |
2013-10-30 05:19:09 | rfm | link | issue19444 messages |
2013-10-30 05:19:08 | rfm | create | |
|