[Top][All Lists]

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

Re: [PATCH] System V Shared memory interface

From: Roland McGrath
Subject: Re: [PATCH] System V Shared memory interface
Date: Sat, 2 Jun 2001 15:24:42 -0400 (EDT)

> I think you need to reread the specs, I see one very important case
> where your proposal fails, consider the following:  a program calls
> shmget with key = IPC_PRIVATE.  shmget returns the id.  The program now
> communicates this id to its children and they attempt to shmat it, yet,
> because this refers to a file descriptor, they fail.

You seem to think I ever read a spec.  Can you point me to one?  All I have
read lately is the Linux man pages on the shm* functions.  The shmget man
page mentions under BUGS that segments created with IPC_PRIVATE are
accessible by other processes, so it is not at all clear that this is
considered a feature.

I have not read anything that clearly defines shm identifiers.  Can you
cite why you think these identifiers are considered global things that you
can communicate to other processes?  (I mean, then, what's the "key" for?)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]