[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ipc under openbsd

Nicholas Janzen wrote:
> this is more of a general programming issue, but i was hoping someone on
> this list might be able to point me in the correct direction.
> I need to use inter process comm because i have forked a process using
> fork(), and i need to share an array of integers with both the child and
> the parrent.
> I have looked into shared memory and shmget in the man pages but this
> doesn't show how to allocate an array of integers.
> Does anyone know how to do this, or is there a better way?

Try http://www.engelschall.com/sw/mm/ it has some 
strange code though (handling SysV semaphores)...