[comp.sys.sun] ipcrm bug?

chuck@morgan.com (Chuck Ocheret) (03/06/89)

When the command "ipcs" is issued, you are shown stats on the System V ipc
entities; shared memory, message queues, and semaphores.  One piece of
information displayed is the key (key_t) of the entity.  The key is
displayed in hex.

The ipcrm command, which allows you to remove an ipc entity, allows you to
specify its key.  However, it only understands decimal numbers for the
key.  This is a real pain.  Especially since on System V systems ipcrm
takes keys specified in hex.

If the key is displayed in hex then commands that require the key should
accept hex values!!!

Chuck Ocheret
Morgan Stanley & Co., Inc.
1251 Avenue of the Americas
19th Floor
New York, N.Y.  10020
(212)703-4474
chuck@morgan.com

zifrony@TAURUS.BITNET (04/04/89)

I am using IPC in my program.  Both semaphores and shared memory are being
utilized.  I needed to use the "ipcs" amd "ipcrm" commands many times
during the development of the program, to remove shared memory segments
and semaphores when my program crahed.

I have never used the key as the identifier of the object to be removed,
but rather the object's ID.  It never failed to remove the desirable
object.  The identifier is available from the "ipcs" command, thus you can
use it as "ipcrm"'s argument.

So, what's the problem?

Doron  Zifrony          zifrony%taurus.bitnet@cunyvm.cuny.edu     or
Msc.   Student          zifrony@Math.Tau.Ac.IL
Tel Aviv Univ.
Israel

Disclaimer:  My opinions are solely my own, and not TAU's.