UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

#1 2008-05-22 07:43 AM

jaggesh
Guest

Re: semaphore help

I want to know the pid of the process accessing a particular semaphore. can u pls let me know how to do this?

#2 2008-05-22 12:39 PM

i3839
Oddministrator
From: Amsterdam
Registered: 2003-06-07
Posts: 2,239

Re: semaphore help

Read the semop(2) and semctl(2) manpages. semctl() with GETPID should do it.

Offline

Board footer

Powered by FluxBB