Changeset 20915

Show
Ignore:
Timestamp:
11/12/07 11:50:33 (1 year ago)
Author:
patrick
Message:

Use the symbolic form of the file permissions value for named semaphores.

Submitted by: Doug McCorkle? <mccdo at iastate dot edu>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/vapor/vpr/md/POSIX/Sync/SemaphorePosix.cpp

    r20909 r20915  
    6464 
    6565   // ----- Allocate the named semaphore ----- // 
    66    mSema = sem_open(mSemaFile, O_CREAT, 0600, initialValue); 
     66   // This sets the semaphore file permissions to 0600. 
     67   mSema = sem_open(mSemaFile, O_CREAT, S_IRUSR | S_IWUSR, initialValue); 
    6768 
    6869   if ( mSema == (sem_t*) SEM_FAILED )