summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-10-04 17:18:01 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-10-04 17:18:01 +0000
commit9f535c225adfa5ed49d9d30746fc6673c3f60c79 (patch)
tree041fc3a56b900787325413c568dacca48b2a3b81 /ace
parenta664b03104413dbcf885a6b64b34989ec747491d (diff)
downloadATCD-9f535c225adfa5ed49d9d30746fc6673c3f60c79.tar.gz
*** empty log message ***
Diffstat (limited to 'ace')
-rw-r--r--ace/SV_Semaphore_Simple.cpp10
-rw-r--r--ace/SV_Semaphore_Simple.h1
2 files changed, 5 insertions, 6 deletions
diff --git a/ace/SV_Semaphore_Simple.cpp b/ace/SV_Semaphore_Simple.cpp
index f7a6809dbb2..fb41901c07c 100644
--- a/ace/SV_Semaphore_Simple.cpp
+++ b/ace/SV_Semaphore_Simple.cpp
@@ -86,12 +86,10 @@ ACE_SV_Semaphore_Simple::open (key_t k,
if (this->internal_id_ == -1)
return -1;
- if (flags == IPC_CREAT)
- {
- for (int i = 0; i < n; i++)
- if (ACE_OS::semctl (this->internal_id_, i, SETVAL, ivalue) == -1)
- return -1;
- }
+ if (ACE_BIT_ENABLED (flags, IPC_CREAT))
+ for (int i = 0; i < n; i++)
+ if (ACE_OS::semctl (this->internal_id_, i, SETVAL, ivalue) == -1)
+ return -1;
return 0;
}
diff --git a/ace/SV_Semaphore_Simple.h b/ace/SV_Semaphore_Simple.h
index a3da30f65e1..04c97798aa7 100644
--- a/ace/SV_Semaphore_Simple.h
+++ b/ace/SV_Semaphore_Simple.h
@@ -29,6 +29,7 @@ public:
enum
{
ACE_CREATE = IPC_CREAT,
+ ACE_EXEL = IPC_EXEL,
ACE_OPEN = 0
};