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 vinay0410
Recipients davin, eryksun, pitrou, vinay0410
Date 2019-08-26.12:42:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Since, advisory locking doesn't work on integer file descriptors which are returned by shm_open on macos, I was thinking of an alternative way of fixing this.

I was thinking of using a shared semaphore, which will store the reference count of the processes using the shared memory segment.
resource_tracker will unlink the shared_memory and the shared semaphore, when the count stored by shared semaphore becomes 0.
This will ensure that neither the shared memory segment nor the shared semaphore leaks.

Does this sound good ?
Any suggestions would be very helpful.
Date User Action Args
2019-08-26 12:42:22vinay0410setrecipients: + vinay0410, pitrou, eryksun, davin
2019-08-26 12:42:21vinay0410setmessageid: <>
2019-08-26 12:42:21vinay0410linkissue37754 messages
2019-08-26 12:42:21vinay0410create