[SciPy-user] shared memory machines
Wed Feb 11 06:04:59 CST 2009
On 2/11/2009 12:13 AM, Gael Varoquaux wrote:
> I did a setup script, and I had to change a few detail because Cython was
> unhappy with the names of the modules (I suspect local imports happening
> instead of absolute ones).
> I had to add a __weakref__ attribute to the handle, to make it so that it
> can be weakref'd.
I've noticed you used the version I posted to the list, and not the
latest on the web. So there is a lot of debugging you missed. I'll do a
quick merge of what you posted with mine.
I inherited via a Python class to allow a weakref to a Handle. Your
solution is cleaner.
As for the clean-up thread:
A shared segment has an owner on Linux. Only the owner or superuser can
mark it for deletion. Someone else but the owner may be the last to
detach, and then marking for deletion will fail. I think we should
remove the thread and raise an exception if marking for deletion fails.
We cannot completely foolproof the clean-up against use of os.setuid
More information about the SciPy-user