From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,74a809fd5ff474dd,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-11-20 01:27:24 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: kdom@mail.mobistar.be (dompie) Newsgroups: comp.unix.tru64 Subject: getting PID of proc that created semaphores Date: 20 Nov 2002 01:27:24 -0800 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 212.224.148.35 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1037784444 27339 127.0.0.1 (20 Nov 2002 09:27:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 20 Nov 2002 09:27:24 GMT Xref: archiver1.google.com comp.unix.tru64:9143 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