Exchanging data with a C program using shared memory (sysV IPC)

Al news00 at wilec.net
Tue Jun 27 18:36:32 CEST 2006


I want my python application to communicate with an legacy C program which
read/write data in a shared memory (Unix Sys V IPC).

It seems that there are no official shm nor sysV ipc module, and that
non-official ones are dead. I can't modify the C code to change its
communication method.

How would you solve this problem using python ?
Is there any reason there is no official shm for python ?

I could write a C code which communicates with my python application
using mmap or something else and with the old C code using shmat(), but
this is a rather ugly solution.

Thanks in advance.


More information about the Python-list mailing list