On Fri, Dec 26, 2008 at 10:34 AM, shark huang <[email protected]> wrote:

> Hi:
> Thanks.
>
> On Fri, Dec 26, 2008 at 12:05 PM, ajit mote <[email protected]>wrote:
>
>>
>>
>> On Thu, Dec 25, 2008 at 7:39 AM, shark huang <[email protected]> wrote:
>>
>>> How can I know who own the semaphore at one moment?
>>>
>>
>> ipcs -s
>>
>  'cat /proc/sysvipc/sem' should be same.
>
>
>>
>>
>>
>>> On Thu, Dec 25, 2008 at 12:26 AM, shark huang <[email protected]>wrote:
>>>
>>>> Hi:  is the value of cuid and uid always same? Looks like they only are
>>>> given a same value in function "ipc_addid", which means the value was
>>>> initialized when the semaphore is created.
>>>>
>>>
  When performing the first task, the process which calls *semget* becomes
the owner/creator, and  Remember, ownership can be changed, but the creating
process always remains the creator. So values of uid and cuid may not be
always same.



>>>> br
>>>> shark
>>>>
>>>>
Note: Please send mail to mailing list, this way everybody will be reading
the thread

>
>>>
>>
>>
>> --
>> Thanks & Regards,
>> Ajit Subhash Mote
>>
>>
>


-- 
Thanks & Regards,
Ajit Subhash Mote

Reply via email to