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

Re: Copying memory between processes?



On Mon, Jul 01, 2002 at 09:16:57PM +0200, wojtek@ifirma.pl wrote:
> Is it possible (on BSD :-) to copy a chunk of memory directly from one
> process' address space to another process' address space?

This probably belongs on comp.unix.programming or comp.unix.bsd.*,
but...

If you have control of both processes, it is most efficient to simply
have them both mmap(MAP_SHARED) a file.

If you need to snoop around in the memory of another process, you
probably need to use ptrace().

-andy