Queryable Daemon

Nobody nobody at nowhere.com
Mon Aug 3 13:23:06 EDT 2009


On Sun, 02 Aug 2009 19:36:08 -0600, Michael Torrie wrote:

> Another possibility is shared memory segments.  I'm not sure how
> security is done in this case.

Shared memory segments have an owner, group, and the standard ugo=rwx
permissions (execute permission is present but ignored); see the shmget(2)
and shmctl(2) manpages.

But Unix-domain sockets are supported by the standard library, while
shared memory would require a separate library, e.g.:

	http://semanchuk.com/philip/PythonIpc/

Also, there is unlikely to be an advantage to using shared memory in
Python. In most cases, you would have to explicitly serialise Python
objects into the shared memory region. It's more useful in C, where you
can treat the region as a struct which is accessed directly from the
program.




More information about the Python-list mailing list