Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: kdom@mail.mobistar.be (dompie)
Subject: getting PID of proc that created semaphores
Date: 20 Nov 2002 01:27:24 -0800	[thread overview]
Message-ID: <c2b4ae48.0211200127.5a16845f@posting.google.com> (raw)

Hi,

is there a way to know what process created a set of semaphores?
Let me explain:
if I type 'ipcs -a', I get a e.g. the following fields:
"
Semaphores:
T      ID        KEY    MODE         OWNER    GROUP  CREATOR   CGROUP
NSEMS   OTIME    CTIME
s       0 0x41440abc --ra-------      root   system     root   system 
   1 16:16:03 16:16:03
s    2049        0xd --ra-ra-ra-      root   daemon     root   daemon 
 303 10:15:41 16:20:42
s    6146      0xcae --ra-ra-ra-      root   daemon     root   daemon 
   1 10:15:37 16:20:54
"

Can I based upon the 'ID' find the process that created the
semaphores?

For shared memory, the CPID is given, but for sems it is not.

Any help much appreciated.

Kris


                 reply	other threads:[~2002-11-20  9:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox